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/Parse/type_expr.swift
+3-67Lines changed: 3 additions & 67 deletions
Original file line number
Diff line number
Diff line change
@@ -344,18 +344,10 @@ func compositionType() {
344
344
345
345
CheckType<P1 & P2>.matches(((P1)&(P2)).self)
346
346
CheckType<P1 & P2>.matches((Foo.P1 &Foo.P2).self)
347
-
// FIXME: Teach Sema to recognize this type expression.
348
-
// expected-error@+1 {{binary operator '&' cannot be applied to operands of type '(any (Foo).P1).Type' (aka '(any P1).Type') and '(any (Foo).P2).Type' (aka '(any P2).Type')}}
// FIXME: Teach Sema to recognize this type expression.
352
-
// expected-error@+1 {{binary operator '&' cannot be applied to operands of type '(any Optional<Foo>.P1).Type' (aka '(any P1).Type') and '(any Optional<Foo>.P2).Type' (aka '(any P2).Type')}}
// FIXME: Teach Sema to recognize this type expression.
355
-
// expected-error@+1 {{binary operator '&' cannot be applied to operands of type '(any Array<Foo>.P1).Type' (aka '(any P1).Type') and '(any Array<Foo>.P2).Type' (aka '(any P2).Type')}}
// FIXME: Teach Sema to recognize this type expression.
358
-
// expected-error@+1 {{binary operator '&' cannot be applied to operands of type '(any Dictionary<Int, Foo>.P1).Type' (aka '(any P1).Type') and '(any Dictionary<Int, Foo>.P2).Type' (aka '(any P2).Type')}}
// FIXME: Teach Sema to recognize this type expression.
389
-
// expected-error@+1 {{cannot convert value of type '(Optional<Foo>.Wrapped.Type, Optional<Foo>.Wrapped.Type)' (aka '(Foo.Type, Foo.Type)') to expected argument type '(Foo, Foo).Type'}}
// FIXME: Teach Sema to recognize this type expression.
392
-
// expected-error@+1 {{cannot convert value of type '(Array<Foo>.Element.Type, Array<Foo>.Element.Type)' (aka '(Foo.Type, Foo.Type)') to expected argument type '(Foo, Foo).Type'}}
// FIXME: Teach Sema to recognize this type expression.
395
-
// expected-error@+1 {{cannot convert value of type '(Dictionary<Int, Foo>.Value.Type, Dictionary<Int, Foo>.Value.Type)' (aka '(Foo.Type, Foo.Type)') to expected argument type '(Foo, Foo).Type'}}
0 commit comments