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
a =="="? // expected-error {{binary operator '==' cannot be applied to operands of type 'Any' and 'String?'}}
429
-
// expected-note@-1 {{overloads for '==' exist with these partially matching parameter lists: (CodingUserInfoKey, CodingUserInfoKey), (FloatingPointSign, FloatingPointSign), (String, String), (Unicode.CanonicalCombiningClass, Unicode.CanonicalCombiningClass)}}
428
+
a =="="? // expected-error {{cannot use optional chaining on non-optional value of type 'String'}}
429
+
// expected-error@-1 {{protocol 'Any' as a type cannot conform to 'Equatable'}}
430
+
// 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}}
430
431
}
431
432
432
433
// SR-12309 - Force unwrapping 'nil' compiles without warning
0 commit comments