Swift 1.2b3 Struct of only optionals doesn't compile
| Originator: | dougbeal | ||
| Number: | rdar://20161590 | Date Originated: | 13-Mar-2015 |
| Status: | Duplicate/19780343 | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6.3 6D543q |
| Classification: | Reproducible: | Y |
Summary:
I struct with only optionals doesn't compile in Swift 1.2b3, when it did in Swift 1.1:
struct Test {
let t: String?
}
Generates "Return from initializer without initialize all stored properties"
Steps to Reproduce:
In Swift 1.2b3 playground, enter:
struct Test {
let t: String?
}
Expected Results:
Compiles
Actual Results:
Error "Return from initializer without initialize all stored properties"
Version:
Xcode 6.3 6D543q
OS X 10.10.2 (14C109)
Notes:
Configuration:
Swift 1.2b3, playground or file
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!