Xcode-beta (7A120f): Swift 2 converter uses "var" instead of "let"
| Originator: | thedov | ||
| Number: | rdar://21321329 | Date Originated: | 10-Jun-2015 12:30 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode-beta (7A120f) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When the Swift 2 syntax converter updates a call to a method that used to return NSError, the resulting code contains “catch var error as NSError”, which then yields a warning if the value isn’t mutated (and it typically won’t be). The migrator should update the code to “catch let error as NSError”
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!