Xcode-beta (7A120f): throw vs throws in declaration needs better fixit
| Originator: | owensd | ||
| Number: | rdar://21328447 | Date Originated: | 10-Jun-2015 02:37 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode-beta (7A120f) |
| Classification: | Other Bug | Reproducible: | Always |
When you define this:
func f() throw {
}
The fix-it is wrong. It says: “Consecutive statements on a line must be separated by ‘;’”.
Instead, it should offer to change “throw” to “throws”.
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!