mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
282 B
Swift
16 lines
282 B
Swift
import A
|
|
|
|
extension Impl : Proto {
|
|
public func wellNow() {
|
|
print("Impl conformance in C")
|
|
}
|
|
}
|
|
|
|
public func checkAnyInC() {
|
|
if let container = any as? Container<Impl> {
|
|
container.contained.wellNow()
|
|
} else {
|
|
print("check returned not Container<Impl> in C")
|
|
}
|
|
}
|