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
Copy file name to clipboardExpand all lines: test/Constraints/invalid_constraint_lookup.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,6 @@ protocol _Collection {
25
25
protocolCollection:_Collection,Sequence{
26
26
subscript(i:Index)->Iterator.Element{getset}
27
27
}
28
-
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 'C'}}
29
-
varx:C.Iterator.Element=elements[i] // expected-error {{'Iterator' is not a member type of 'C'}}
28
+
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
+
varx:C.Iterator.Element=elements[i] // expected-error {{'Iterator' is not a member type of type 'C'}}
Copy file name to clipboardExpand all lines: test/Generics/function_defs.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -290,7 +290,7 @@ func sameTypeEq<T>(_: T) where T = T {} // expected-error{{use '==' for same-typ
290
290
291
291
func badTypeConformance1<T>(_:T)where Int :EqualComparable{} // expected-error{{type 'Int' in conformance requirement does not refer to a generic parameter or associated type}}
292
292
293
-
func badTypeConformance2<T>(_:T)where T.Blarg :EqualComparable{} // expected-error{{'Blarg' is not a member type of 'T'}}
293
+
func badTypeConformance2<T>(_:T)where T.Blarg :EqualComparable{} // expected-error{{'Blarg' is not a member type of type 'T'}}
0 commit comments