Cannot compare "".dynamicType to String.self using ==
Originator: | oabdelhafith | ||
Number: | rdar://23487272 | Date Originated: | 10/11/2015 |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode 7.1.1 |
Classification: | Bug | Reproducible: | Always |
Summary: Using the last version of swift (Xcode 7.1.1) it is not possible to compare the dynamicType with a Type.self Doing this won't work: `"".dynamicType == String.self` If however I save `"".dynamicType` to an intermediate variable and then compare it, it works: let x = "".dynamicType x == String.self Steps to Reproduce: Expected Results: Actual Results: Version: Xcode 7.1.1 (7B1005) Notes: Configuration: Attachments: 'Screen Shot 2015-11-07 at 10.35.34.png' was successfully uploaded.
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!