mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Update standard library for id-as-Any.
This commit is contained in:
@@ -51,9 +51,7 @@ public enum _DebuggerSupport {
|
||||
otherwise: ()->T
|
||||
) -> T {
|
||||
if isClass(value) {
|
||||
if let ao = value as? AnyObject {
|
||||
return ifClass(ao)
|
||||
}
|
||||
return ifClass(_unsafeDowncastToAnyObject(fromAny: value))
|
||||
}
|
||||
return otherwise()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user