|
|
| Previous ID |
SR-3542 |
| Radar |
None |
| Original Reporter |
@jckarter |
| Type |
Bug |
| Status |
Resolved |
| Resolution |
Done |
Additional Detail from JIRA
|
|
| Votes |
0 |
| Component/s |
|
| Labels |
Bug, StarterProposal |
| Assignee |
@dduan |
| Priority |
Medium |
md5: 81cdae497bc08ef2e10d81c0715ec5fc
Issue Description:
In Swift 3, we cleaned up the argument label model for most declarations, but enum cases got left behind. If you have cases with labeled payloads:
enum Foo {
case bar(bas: Int)
case zim(zang: Int, zung: String)
}
then the cases are still formally declarations named bar and zim, with labeled tuples as payload types. They should behave more consistently with other declarations and have the labels become part of the declaration name.
Additional Detail from JIRA
md5: 81cdae497bc08ef2e10d81c0715ec5fc
Issue Description:
In Swift 3, we cleaned up the argument label model for most declarations, but enum cases got left behind. If you have cases with labeled payloads:
then the cases are still formally declarations named
barandzim, with labeled tuples as payload types. They should behave more consistently with other declarations and have the labels become part of the declaration name.