Files
swift-mirror/test/IDE/complete_uninferred_generic.swift
Alex Hoppen 32eff21977 [IDE] Remove "Begin completions" and "End completions" from test cases
These test lines weren't actually providing any value and were annoying to write. Let's jut remove them.
2023-03-22 09:07:17 -07:00

19 lines
647 B
Swift

// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=UNINFERRED | %FileCheck %s -check-prefix=UNINFERRED
struct S1<V0> {}
protocol P1 {
associatedtype A1
}
extension P1 where A1 == S1<Int> {
subscript<T>(v0: T) -> Int { fatalError() }
subscript<T>(v0: T) -> Undefined { fatalError() }
}
struct S2<T> : P1 {
typealias A1 = S1<T>
}
_ = S2()#^UNINFERRED^#
// UNINFERRED-DAG: Decl[Subscript]/Super: [{#(v0): T#}][#Int#]; name=[:]
// UNINFERRED-DAG: Decl[Subscript]/Super: [{#(v0): T#}][#<<error type>>#]; name=[:]
// UNINFERRED-DAG: Keyword[self]/CurrNominal: .self[#S2<_>#]; name=self