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
[ConstraintSystem] Detect that function type has failures before applying arguments
If a type variable representing "function type" is a hole
or it could be bound to some concrete type with a help of
a fix, let's propagate holes to the "input" type. Doing so
provides more information to upcoming argument and result matching.
[4].joined(separator:[1]) // expected-error {{cannot convert value of type 'Int' to expected element type 'String'}}
752
-
// expected-error@-1 {{cannot convert value of type '[Int]' to expected argument type 'String'}}
753
-
[4].joined(separator:[[[1]]]) // expected-error {{cannot convert value of type 'Int' to expected element type 'String'}}
754
-
// expected-error@-1 {{cannot convert value of type '[[[Int]]]' to expected argument type 'String'}}
751
+
[4].joined(separator:[1]) // expected-error {{referencing instance method 'joined(separator:)' on 'Sequence' requires that 'Int' conform to 'Sequence'}}
752
+
[4].joined(separator:[[[1]]]) // expected-error {{referencing instance method 'joined(separator:)' on 'Sequence' requires that 'Int' conform to 'Sequence'}}
0 commit comments