mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
25 lines
262 B
Swift
25 lines
262 B
Swift
|
|
@_versioned
|
|
protocol Proto {
|
|
func confx()
|
|
}
|
|
|
|
public struct MyStruct : Proto {
|
|
@_versioned
|
|
func confx() {
|
|
}
|
|
|
|
public init() {
|
|
}
|
|
}
|
|
|
|
@inline(never)
|
|
@_versioned
|
|
func callit(_ p: Proto) {
|
|
}
|
|
|
|
@_transparent
|
|
public func testit(_ n: MyStruct) {
|
|
callit(n)
|
|
}
|