mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
24 lines
240 B
Swift
24 lines
240 B
Swift
// RUN: not %target-typecheck-verify-swift
|
|
|
|
protocol P1 {
|
|
class N1 {
|
|
init() {}
|
|
}
|
|
}
|
|
|
|
protocol P2 {}
|
|
|
|
extension P2 {
|
|
class N2 {
|
|
init() {}
|
|
}
|
|
}
|
|
|
|
class C1: P1.N1 {
|
|
override init() {}
|
|
}
|
|
|
|
class C2: P2.N2 {
|
|
override init() {}
|
|
}
|