Navigation Menu

Skip to content

Commit

Permalink
[Test] Remove as AnyObject cast from OS_objects.swift.
Browse files Browse the repository at this point in the history
This workaround is no longer needed.

rdar://problem/27526994
  • Loading branch information
mikeash committed Oct 19, 2020
1 parent 68b790f commit b1633fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/Interpreter/SDK/OS_objects.swift
Expand Up @@ -16,9 +16,8 @@ import DispatchObjects

// CHECK: Get current queue
print("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

let obj = dispatch_get_current_queue()

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

0 comments on commit b1633fd

Please sign in to comment.