Skip to content

Commit b1633fd

Browse files
committed
[Test] Remove as AnyObject cast from OS_objects.swift.
This workaround is no longer needed. rdar://problem/27526994
1 parent 68b790f commit b1633fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/Interpreter/SDK/OS_objects.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ import DispatchObjects
1616

1717
// CHECK: Get current queue
1818
print("Get current queue")
19-
// TODO: Properly implement generalized dynamic casts from Any to
20-
// runtime-visible classes. `as AnyObject` should be unnecessary here.
21-
let obj = dispatch_get_current_queue() as AnyObject
19+
20+
let obj = dispatch_get_current_queue()
2221

2322
// CHECK-NEXT: Object is a dispatch queue
2423
if let q = obj as? OS_dispatch_queue {

0 commit comments

Comments
 (0)