Swift 3.0 migrator doesn't lowercase string enums with specific values

Originator:keithbsmiley
Number:rdar://26886771 Date Originated:19-Jun-2016 23:15
Status:Closed Resolved:
Product:Developer Tools Product Version:Xcode 8 beta 1
Classification:Other Bug Reproducible:Always
 
Summary:
When migrating our codebase from Swift 2.2 -> Swift 3.0 we noticed that enums inheriting from String were not lowercase *even though* they had defined string values (as opposed to them being implicit).

Steps to Reproduce:
1. Create a string enum in Swift 2.2:

enum Foo: String {
	case Bar = "something
}

2. Migrate the code

Expected Results:
Bar is lowercased to `bar`

Actual Results:
Bar is left untouched

Version:
Xcode 8 beta 1

Notes:
Based on the labs at WWDC the assumption was no enums with `: String` are touched because if they do not have values defined then that would affect the runtime values. But in this case were we assign a specific string, this shouldn't be an issue.

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!