blob: cb31e7844efa8973b7d4004169dd0c06b0a2dcdc [file] [log] [blame]
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
// RUN: %target-swift-ide-test -code-completion -code-completion-token=B -source-filename=%s
protocol Proto {}
struct S<T: Proto> {
typealias Value = T
func test(arg: Int) -> Value {
return #^A^#
}
}
class C: Proto {
init() {}
}
extension Proto {
typealias Nested = C
}
func receiver<T: Proto>(arg: T) {}
func test() {
receiver(arg: .#^B^#)
}