Xcode 7.0.1: Enums are not printed correctly
| Originator: | owensd | ||
| Number: | rdar://22915709 | Date Originated: | 30-Sep-2015 08:53 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7.0.1 (7A1001) |
| Classification: | Other Bug | Reproducible: | Always |
Run this code:
enum Awesome {
case HowAwesome(String)
case KindaAwesome
case NotReallyAwesome
case WithOutMeYouWouldBeHappy(String)
}
let a = Awesome.HowAwesome("THIS AWESOME")
let b = Awesome.KindaAwesome
let c = Awesome.NotReallyAwesome
print(a)
print(b)
print(c)
The output should be:
HowAwesome("THIS AWESOME")
KindaAwesome
NotReallyAwesome
Instead, the output is:
HowAwesome("THIS AWESOME")
KindaAwesome
KindaAwesome
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!