mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
1f79af7504
Fixes <rdar://problem/15933365>.
25 lines
286 B
Swift
25 lines
286 B
Swift
// RUN: %target-swift-frontend -emit-sil %s
|
|
// REQUIRES: objc_interop
|
|
|
|
// Just make sure this doesn't crash.
|
|
|
|
import Foundation
|
|
|
|
@objc protocol P {
|
|
func f()
|
|
}
|
|
|
|
class C : P {
|
|
func f() {}
|
|
}
|
|
|
|
@_transparent func g<T : P>(_ t: T) {
|
|
t.f()
|
|
}
|
|
|
|
func callsG(_ c: C) {
|
|
g(c)
|
|
}
|
|
|
|
callsG(C())
|