Swift 1.2: AnyObject does not have a proper demangled String.
| Originator: | kiding0 | ||
| Number: | rdar://19778210 | Date Originated: | 10-Feb-2015 04:02 PM |
| Status: | Closed | Resolved: | Yes |
| Product: | Developer Tools | Product Version: | Xcode 6.3 beta (6D520o) |
| Classification: | Reproducible: | Always |
Summary: Among all the other types, only AnyObject does not print its demangled type string properly – I believe it's a simple mistake derived from radr://18947381. Steps to Reproduce: println(Int) println(AnyClass) println(AnyObject) println(AnyObject.self) let obj: AnyObject? = nil println(obj.dynamicType) println(_stdlib_getDemangledTypeName(obj)) Expected Results: Swift.Int Swift.AnyObject Swift.AnyObject Swift.AnyObject.Type Swift.Optional<Swift.AnyObject> Swift.Optional<Swift.AnyObject> Actual Results: Swift.Int _TtPSs9AnyObject_ _TtPSs9AnyObject_ _TtPSs9AnyObject_.Type Swift.Optional<_TtPSs9AnyObject_> Swift.Optional<_TtPSs9AnyObject_> Version: Xcode 6.3 beta (6D520o) OS X 10.10.2 (14C109) Notes: Configuration: Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!