Skip to content

Commit 1be7171

Browse files
authored
Merge pull request swiftlang#34350 from mikeash/remove-os-object-test-workaround
[Test] Remove `as AnyObject` cast from OS_objects.swift.
2 parents 0d6e79c + b1633fd commit 1be7171

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)