Files
swift-mirror/test/ClangImporter/MixedSource/Inputs/mixed-with-header.swift
Jordan Rose 61798ff6ec [test] Rename test/ClangModules to test/ClangImporter. (#5618)
...to match the component in include/ and lib/. No content change.
2016-11-02 18:00:53 -07:00

41 lines
908 B
Swift

@objc public class ForwardClass : NSObject {
override public init() {}
}
@objc public protocol ForwardProto : NSObjectProtocol {
}
@objc public class ForwardProtoAdopter : NSObject, ForwardProto {
override public init() {}
}
@objc public class PartialBaseClass {
}
@objc public class PartialSubClass : NSObject {
}
public class ProtoConformer : ForwardClassUser {
@objc public func consumeForwardClass(_ arg: ForwardClass) {}
@objc public var forward = ForwardClass()
public init() {}
}
public func testProtocolWrapper(_ conformer: ForwardClassUser) {
conformer.consumeForwardClass(conformer.forward)
}
public func testStruct(_ p: Point2D) -> Point2D {
var result = p
result.y += 5
return result
}
public class Derived : Base {
public override func safeOverride(_ arg: NSObject) -> ForwardClass {
return ForwardClass()
}
}
public func rdar16923405(_ a: AALevel) {}