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.
24 lines
534 B
Swift
24 lines
534 B
Swift
// Do not add an import of the Clang "Mixed" module here!
|
|
|
|
@objc public class SwiftClass {
|
|
public init(x: Int) {}
|
|
public func pureSwiftMethod(x: Int?) -> Bool {
|
|
return x != nil ? true : false
|
|
}
|
|
}
|
|
|
|
class InternalClassShouldShowUp {}
|
|
|
|
public class PureSwiftClass {
|
|
public class func verify() -> Bool { return true }
|
|
}
|
|
|
|
@objc(SwiftProtoWithCustomName)
|
|
public protocol CustomNameType {}
|
|
|
|
@objc(SwiftClassWithCustomName)
|
|
public class CustomNameClass : CustomNameType {
|
|
public init() {}
|
|
@nonobjc func pureSwiftMethod() {}
|
|
}
|