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
We no longer need to check for a type variable
here, it no longer regresses diagnostics. Also,
while here, let's bump the impact for an
Any/AnyObject missing conformance, as that's
unlikely going to be helpful since they cannot
conform to protocols even if the user wanted them
to.
a =="="? // expected-error {{cannot use optional chaining on non-optional value of type 'String'}}
438
-
// expected-error@-1 {{type 'Any' cannot conform to 'Equatable'}}
439
-
// expected-note@-2 {{requirement from conditional conformance of 'Any?' to 'Equatable'}} expected-note@-2 {{only concrete types such as structs, enums and classes can conform to protocols}}
438
+
// expected-error@-1 {{binary operator '==' cannot be applied to operands of type 'Any' and 'String?'}}
0 commit comments