Implicit generated initializer of public classes should have public access control by default.

Originator:pitiphong.ph
Number:rdar://19666536 Date Originated:31-Jan-2015 02:39 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Swift 1.1
Classification:Other Bug Reproducible:Not Applicable
 
Summary:
implicitly generated initializer of public classes should have public access control by default.
When we have a public class and its properties have all default value, Swift will auto implicitly generate initializer. For the public class, I think those initializers should have public access control by default

Steps to Reproduce:
Use this code
public class APIEndPoint {
	var count: Int = 0
}

In importing module try to create an  instance.
let endPoint = APIEndPoint()

Expected Results:
implicitly generated initializer should have public access control

Actual Results:
Compiler failed because initializer has default access control.

Regression:
Describe circumstances where the problem occurs or does not occur, such as software versions and/or hardware configurations.

Notes:
Provide additional information, such as references to related problems, workarounds and relevant 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!