mirror of
https://github.com/apple/swift.git
synced 2025-12-25 12:15:36 +01:00
22 lines
240 B
Swift
22 lines
240 B
Swift
|
|
private protocol Proto {
|
|
func confx()
|
|
}
|
|
|
|
public struct MyStruct : Proto {
|
|
func confx() {
|
|
}
|
|
|
|
public init() {
|
|
}
|
|
}
|
|
|
|
@inline(never)
|
|
private func callit(_ p: Proto) {
|
|
}
|
|
|
|
@_transparent
|
|
public func testit(_ n: MyStruct) {
|
|
callit(n)
|
|
}
|