|
|
| Previous ID |
SR-10084 |
| Radar |
None |
| Original Reporter |
@an0 |
| Type |
Bug |
| Status |
Resolved |
| Resolution |
Done |
Environment
Swift 5
Additional Detail from JIRA
|
|
| Votes |
0 |
| Component/s |
Compiler |
| Labels |
Bug |
| Assignee |
@theblixguy |
| Priority |
Medium |
md5: 126719b9fe75444b25b26161922488c9
Issue Description:
struct SSS {
let name: String
}
enum EEE {
case foo(SSS)
// This triggers "invalid redeclaration of 'foo'" but shouldn't because the parameter type and associated value type is different.
static func foo(_ name: String) -> EEE {
return .foo(SSS(name: name))
}
}