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
return s // expected-error{{return expression of type 'BridgedStruct' does not conform to 'AnyObject'}}
92
+
return s // expected-error{{return expression of type 'BridgedStruct' expected to be an instance of a class or class-constrained type}}
93
93
return s asAnyObject
94
94
}
95
95
@@ -344,14 +344,14 @@ func forceUniversalBridgeToAnyObject<T, U: KnownClassProtocol>(a: T, b: U, c: An
344
344
z = g asAnyObject
345
345
z = h asAnyObject
346
346
347
-
z = a // expected-error{{does not conform to 'AnyObject'}}
347
+
z = a // expected-error{{value of type 'T' expected to be an instance of a class or class-constrained type in assignment}}
348
348
z = b
349
-
z = c // expected-error{{does not conform to 'AnyObject'}} expected-note {{cast 'Any' to 'AnyObject'}} {{8-8= as AnyObject}}
350
-
z = d // expected-error{{does not conform to 'AnyObject'}}
349
+
z = c // expected-error{{value of type 'Any' expected to be an instance of a class or class-constrained type in assignment}} expected-note {{cast 'Any' to 'AnyObject'}} {{8-8= as AnyObject}}
350
+
z = d // expected-error{{value of type 'KnownUnbridged' expected to be an instance of a class or class-constrained type in assignment}}
351
351
z = e
352
352
z = f
353
353
z = g
354
-
z = h // expected-error{{does not conform to 'AnyObject'}}
354
+
z = h // expected-error{{value of type 'String' expected to be an instance of a class or class-constrained type in assignment}}
let _:AnyObject= stream // expected-error {{value of type 'FSEventStreamRef' (aka 'OpaquePointer') does not conform to specified type 'AnyObject'}}
16
+
let _:AnyObject= stream // expected-error {{value of type 'FSEventStreamRef' (aka 'OpaquePointer') expected to be instance of class or class-constrained type}}
takesAnyObject(S.self) // expected-error{{argument type 'S.Type' does not conform to expected type 'AnyObject'}}
17
-
takesAnyObject(ClassConstrainedProto.self) // expected-error{{argument type 'ClassConstrainedProto.Protocol' does not conform to expected type 'AnyObject'}}
15
+
takesAnyObject(S.self) // expected-error{{argument type 'S.Type' expected to be an instance of a class or class-constrained type}}
16
+
takesAnyObject(ClassConstrainedProto.self) // expected-error{{argument type 'ClassConstrainedProto.Protocol' expected to be an instance of a class or class-constrained type}}
0 commit comments