Files
swift-mirror/test/IDE/print_source_file_interface_2.swift

26 lines
477 B
Swift

/*
Copyright (c) 452 Attila the Hun. All rights reserved.
*/
/* Blah Blah */
/* More Blah Blah */
public class MyClass {
func doit(x: Int) {}
}
/// This is a very nice extension.
extension MyClass {
/// and a nice subscript.
subscript(i: Int) -> Int { return 0 }
}
/// Don't print `mutating` twice.
struct MyStruct {
mutating func foo() {}
}
// RUN: %target-swift-ide-test -print-swift-file-interface -source-filename %s > %t.out
// RUN: diff -u %s.result %t.out