Update standard library for id-as-Any.

This commit is contained in:
Joe Groff
2016-07-22 11:35:17 -07:00
parent 0703b1937f
commit 9effc047e6
7 changed files with 39 additions and 26 deletions

View File

@@ -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()
}