Access level of imlicit struct initializer should match that of the struct

Originator:klaaspieter
Number:rdar://19888405 Date Originated:19-Feb-2015 05:16 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Swift 1.2
Classification:Serious Bug Reproducible:Always
 
Summary:
Declaring a struct public doesn’t make it’s implicit initializer public. Using that struct from outside the current target (e.g. from a test) requires declaring an explicit public initializer.

Steps to Reproduce:
1. Create a public struct
2. Attempt to initialize it using the implicit initializer

Expected Results:
A initialized struct

Actual Results:
A compiler error saying that no initializers are available

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!