mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The linker expects to see mangled symbols in the TBD, otherwise it won't be able to link anything. Use LLVM's mangler to mangle them. Fixes rdar://54055049
32 lines
534 B
Swift
32 lines
534 B
Swift
public class PublicClass {
|
|
public func method() {
|
|
}
|
|
|
|
public init() {
|
|
}
|
|
}
|
|
|
|
public class PublicSubclass: PublicClass {
|
|
public override func method() {
|
|
}
|
|
}
|
|
|
|
public protocol PublicProtocol {
|
|
var publicStruct: PublicStruct { get }
|
|
}
|
|
|
|
public struct PublicStruct {
|
|
public init() {}
|
|
}
|
|
|
|
extension PublicStruct: PublicProtocol {
|
|
public var publicStruct: PublicStruct { return self }
|
|
}
|
|
|
|
public enum PublicEnum: PublicProtocol {
|
|
case caseOne
|
|
case caseTwo
|
|
|
|
public var publicStruct: PublicStruct { return PublicStruct() }
|
|
}
|