blob: b97041ca37300149a36ca1b13e9f521dcf12ccc5 [file] [log] [blame]
import APINotesTest
public struct S1 {
public init(_ : Int) {}
public func foo1() {}
mutating public func foo2() {}
public func foo3() {}
public func foo4() -> Void {}
public func foo5(x : Int, y: Int) {}
}
public class C1 {
public class func foo1() {}
public func foo2(_ : Int) {}
public weak var CIIns1 : C1?
public var CIIns2 : C1?
public func foo3(a : Void?) {}
public func foo4(a : Void?) {}
}
public class C3 {}
public struct Somestruct2 {
public init(_ : C1) {}
public static func foo1(_ a : C3) {}
}
public class C4: OldType {
public func foo() {}
}
@objc
public class C5 {
@objc
public func dy_foo() {}
}
public struct C6 {}
@_frozen
public enum IceKind {}
public protocol P1 {}
public protocol P2 {}
public extension P1 where Self: P2 {
func P1Constraint() {}
}
@_fixed_layout
public struct fixedLayoutStruct {
public var b = 2
public func foo() {}
public var a = 1
}
@_frozen
public enum FrozenKind {
case Unchanged
case Fixed
case Rigid
}
public class C7 {
public func foo(_ a: Int = 1, _ b: Int = 2) {}
}
public protocol P3: P2, P1 {}
extension fixedLayoutStruct: P1 {}
public protocol AssociatedTypePro {
associatedtype T1 = Int
associatedtype T2
associatedtype T3 = C1
}
public class RemoveSetters {
public var Value = 4
public subscript(_ idx: Int) -> Int {
get { return 1 }
set(newValue) {}
}
}