You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously we would skip type-checking the result expression of a
`return` or the initialization expression of a binding if the contextual
type had an error, but that misses out on useful diagnostics and
prevents code completion and cursor info from working. Change the logic
such that we open ErrorTypes as holes and continue to type-check.
func insertionSort<C:Mutable>(_ elements:inoutC, i:C.Index){ // expected-error {{cannot find type 'Mutable' in scope}} expected-error {{'Index' is not a member type of type 'C'}}
29
29
varx:C.Iterator.Element=elements[i] // expected-error {{'Iterator' is not a member type of type 'C'}}
30
+
// expected-error@-1 {{value of type 'C' has no subscripts}}
0 commit comments