LLVM 6 Swift compiler fails on compiling some (reserved?) Obj-c method names
| Originator: | ullrich.schaefer | ||
| Number: | rdar://17110619 | Date Originated: | 03-Jun-2014 01:18 PM |
| Status: | Resolved | Resolved: | |
| Product: | iOS SDK | Product Version: | 6.0 (6A215l) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: I've created an empty iOS project with Swift as the main language. I added an Objective-C class to it and added it to the Bridging Header. Inside that class I added a method with the selector "not". This generates a compiler error. Steps to Reproduce: 1. Create a new Project with Swift as the default language 2. Create an objective C class 3. Add a method `-(void)not` to the implementation and header file Expected Results: Project compiles Actual Results: Compilation error "expected selector for Objective-C method" Version: 6.0 (6A215l) Notes: Configuration: Xcode Version 6.0 (6A215l) Attachments: 'namebug.zip' was successfully uploaded: http://cl.ly/0b0u380g2a3d
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!
Closed
I'm new to OpenRadar. I had a similar issue (but with the word 'and'), opened a radar, they closed it as duplicate of this one with the word "(closed)" next to the number. This is fixed in Beta 5.
Fixed in Xcode 6 beta 5 Version 6.0 (6A279r)