mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
210 B
Swift
13 lines
210 B
Swift
// RUN: not %target-swift-frontend -typecheck %s
|
|
|
|
// https://github.com/apple/swift/issues/51157
|
|
|
|
protocol P {}
|
|
protocol Q {}
|
|
class A : P {}
|
|
class B : A {}
|
|
|
|
struct A<T:B> {
|
|
var x: T { fatalError("death") }
|
|
}
|