You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was deleted in 025555f, but none of the tests that were changed involve enums with associated values. Should be a simple change to redeclaration checking to get the error back, but we've already gone through a release where this "works"...
I think it should be actually work with a fix or source breaking change to make it an error. All Of these choices better than it looks like "works" but actually not.
Attachment: Download
Environment
Xcode 10.1
Additional Detail from JIRA
md5: f9e3495981f937065413b753ad32c6a9
duplicates:
Issue Description:
If define same case name for enum, the later one will work fine but previous one would be limited and can't be `switch` correctly.
for example:
It will print "not equal".
sample code is attached.
More describe you can find in this this article TinySolution: Resolve the restrictions of enum under the "Strange phenomenon" chapter.
The text was updated successfully, but these errors were encountered: