Private symbols should be redefinable

Originator:robnapier
Number:rdar://17925634 Date Originated:05-Aug-2014 08:55 PM
Status: Resolved:
Product:Swift Product Version:6 beta 5
Classification: Reproducible:
 
If a function, class, or other symbol is private, it currently cannot be redeclared in another file. Since private limits the scope of the symbol to the file, the symbol should be reusable in another file, just as variable names in functions can be reused in other functions.

Steps to Reproduce:
Create two files in the same module
Create a function marked private in one file
Create a function with the same signature, also marked private, in another file.
Compile.

Expected Results:
This should compile, and each should use their private method.

Actual Results:
Invalid redeclaration of '...'

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!