Swift 2.2 Fix-It broken when it comes to for loop - appears non deterministic
Originator: | michaelhochs | ||
Number: | rdar://26083549 | Date Originated: | 04-May-2016 08:36 AM |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | 7.3.1 |
Classification: | Serious Bug | Reproducible: | Always |
Summary: In Xcode 7.3.1 / Swift 2.2 the fix-it is broken when it comes to the old style for loops. Steps to Reproduce: 0. Open the sample playground. 1. Click the yellow advise on how to update the for loop 2. Click the now appearing red compiler error 3. Repeat step 2 a couple of times Expected Results: After step 1 there is no other warning / error in that line. Actual Results: While repeating step 3, sometimes Xcode tries to add another comma do fix the issue and sometimes it tries to remove one. This looks like as if the Swift syntax parser is non deterministic in its behavior. Regression: Notes: Open Source Sample: https://github.com/PSPDFKit-labs/radar.apple.com/tree/master/26083549%20-%20SwiftForLoop
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!