mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We cache failures in the operator maps, so handle null pointers when walking them for code-completion. rdar://problem/29275272
14 lines
337 B
Swift
14 lines
337 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s | %FileCheck %s
|
|
protocol P {
|
|
associatedtype T: P
|
|
}
|
|
struct S<A,B where B: P>: P {
|
|
typealias T = B.T
|
|
func f(_: T) -> T {}
|
|
func f(_: B.T) -> T {}
|
|
}
|
|
func &&&(x: S, y: S) -> Bool {}
|
|
|
|
S()#^A^#
|
|
// CHECK: Decl[InstanceMethod]/CurrNominal: .f
|