mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
334 B
Swift
12 lines
334 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
protocol B {
|
|
typealias A = Any
|
|
}
|
|
|
|
protocol D : B {
|
|
// expected-error@-1 {{no type for 'Self.A' can satisfy both 'Self.A == Any' and 'Self.A == AnyObject'}}
|
|
// expected-error@-2 {{no type for 'Self.A' can satisfy both 'Self.A : AnyObject' and 'Self.A == Any'}}
|
|
typealias A = AnyObject
|
|
}
|