Files
swift-mirror/test/api-digester/Inputs/cake2.swift
Xi Ge 2b05e30756 swift-api-digester: don't assume super classes are always present in the module dump.
When we compare the APIs of entire SDKs, we can assume super classes
are always present in the API dump. However, this assumption is invalid
for framework-level API diff checking, where super classes can come from
other modules whose contents are not serialized.

rdar://33110442
2017-07-06 11:49:44 -07:00

31 lines
615 B
Swift

import APINotesTest
public struct S1 {
public init(_ : Double) {}
mutating public func foo1() {}
mutating public func foo2() {}
public static func foo3() {}
public func foo4() {}
public func foo5(x : Int, y: Int, z: Int) {}
}
public class C0 {
public func foo4(a : Void?) {}
}
public class C1: C0 {
public func foo1() {}
public func foo2(_ : ()->()) {}
public var CIIns1 : C1?
public weak var CIIns2 : C1?
public func foo3(a : ()?) {}
public init(_ : C1) {}
}
public typealias C3 = C1
public struct NSSomestruct2 {
public static func foo1(_ a : C3) {}
}
public class C4: NewType {}