Files
swift-mirror/test/IDE/complete_invalid_op_decl.swift
Ben Langmuir 5c801752fd [code-completion] Fix a crash on invalid operator decls
We cache failures in the operator maps, so handle null pointers when
walking them for code-completion.

rdar://problem/29275272
2016-11-15 14:35:21 -08:00

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