Multiple-rename engine fails with some names in Swift enum definitions
| Originator: | dloewenherz | ||
| Number: | rdar://25642340 | Date Originated: | 09-Apr-2016 01:52 PM |
| Status: | Closed | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7.3 (7D175) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary:
The multiple rename engine fails to parse some variables when bulk renaming inside of an enum. It’s possible this bug affects other data types.
Steps to Reproduce:
1. Paste the following code into a Swift Playground.
enum Animal: Int {
case Dog = 42
var answer: Int { return Dog.rawValue }
}
2. Place the cursor after the “l” in Animal.
3. Press Command+Control+E.
Expected Results:
Only “Animal” should be highlighted.
Actual Results:
“Animal” and “Dog.ra” in “Dog.rawValue” are highlighted.
Notes:
See attached video for an example.
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!