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
I'm not sure if the bug is due to the fact that the compiler allows the definition of cases with overlapping names (which IMO should be legal, because it's no different than overloading functions on argument names), or if it's due to an error in the switch handling within the compiler.
The text was updated successfully, but these errors were encountered:
Environment
Apple Swift version 5.1 (swiftlang-1100.0.257.2 clang-1100.0.31.3)
Additional Detail from JIRA
md5: bc35ebcdfade60a2991e2f8249f3b888
relates to:
Issue Description:
Consider this code:
This definition is happily accepted by
swiftc
, but the following:fails with the following error message:
I'm not sure if the bug is due to the fact that the compiler allows the definition of cases with overlapping names (which IMO should be legal, because it's no different than overloading functions on argument names), or if it's due to an error in the
switch
handling within the compiler.The text was updated successfully, but these errors were encountered: