Private top-level definitions aren't private in Swift
| Originator: | tomabuct | ||
| Number: | rdar://17896685 | Date Originated: | 03-Aug-2014 04:41 AM |
| Status: | Duplicate | Resolved: | 05-Aug-2014 03:24 PM |
| Product: | Swift | Product Version: | Xcode 6 beta 4/6A267n |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: it seems like top-level definitions aren't respecting the private access modifier. Steps to Reproduce: 1. define private k in main.swift 2. define private k in notMain.swift Expected Results: should compiler successfully Actual Results: compiler complains (Invalid redeclaration of k)
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!