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