mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The code goes into its own sub-tree under 'tools' but tests go under 'test', so that running 'check-swift' will also run all the SourceKit tests. SourceKit is disabled on non-darwin platforms.
45 lines
672 B
Swift
45 lines
672 B
Swift
// we keep comments before the first line of code
|
|
// Keep this line
|
|
|
|
import Foundation
|
|
import Darwin
|
|
public class NewLineAfterImport {
|
|
}
|
|
/// This is the class base
|
|
public class FooOverlayClassBase {
|
|
public func f() {}
|
|
var Range = 10
|
|
private var RangePrivate : Int = 10
|
|
}
|
|
public class FooOverlayClassDerived : FooOverlayClassBase {
|
|
override public func f() {}
|
|
}
|
|
// This comment should go away
|
|
private class PrivateClassNotVisible {
|
|
|
|
}
|
|
|
|
class InternalClassVisible {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class IgnoreBigWhiteSpaceGap {
|
|
|
|
}
|
|
|
|
class PropWithDocComment {
|
|
/// Awesome property.
|
|
var prop = 0
|
|
/// I see doubles.
|
|
var (p1, p2) = (0, 1)
|
|
}
|
|
|
|
enum Colors {
|
|
case Red
|
|
case Blue
|
|
}
|