mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
26 lines
477 B
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
|