mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update Interpreter tests for id-as-Any.
This commit is contained in:
@@ -16,7 +16,9 @@ import DispatchObjects
|
||||
|
||||
// CHECK: Get current queue
|
||||
print("Get current queue")
|
||||
let obj = dispatch_get_current_queue();
|
||||
// TODO: Properly implement generalized dynamic casts from Any to
|
||||
// runtime-visible classes. `as AnyObject` should be unnecessary here.
|
||||
let obj = dispatch_get_current_queue() as AnyObject
|
||||
|
||||
// CHECK-NEXT: Object is a dispatch queue
|
||||
if let q = obj as? OS_dispatch_queue {
|
||||
|
||||
Reference in New Issue
Block a user