Swift: EmptyGenerator does not have a public init()
| Originator: | rix.rob | ||
| Number: | rdar://17758868 | Date Originated: | 22-Jul-2014 02:10 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode6-Beta4 (6A267n) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: Swift declarations are internal by default. Implicit initializers for structs cannot be made public even if the struct is public. You have to explicitly implement them if you want them to be public. EmptyGenerator does not have an explicit initializer; ergo, EmptyGenerator() does not compile. Steps to Reproduce: 1. Try to make an EmptyGenerator. Expected Results: Victory. Actual Results: Defeat. Regression: This worked in b3, because b3 didn’t have access control at all. Notes: I have a feeling that the inability to specify access control for implicit initializers is going to be the source of further trouble.
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!