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
SR-2176 Add warning for ambiguous enum value assignment
Issue Description:
In the following code snippet, foo is actually nil because the compiler decides to pick Optional.none instead of MyTest.none. I spent a long time tracking this down!
Another case where this occurs is in code like this:
iffoo == .none { \* stuff *\ }
There are no warnings when this happens. I think there should probably at least be a fixit warning that says something about there being an ambiguity here and offering the user fix it with either `Optional.none` or `MyTest.none`.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 6519b15f5a5403dca6d855c198d0f330
duplicates:
Issue Description:
In the following code snippet, foo is actually nil because the compiler decides to pick Optional.none instead of MyTest.none. I spent a long time tracking this down!
Another case where this occurs is in code like this:
There are no warnings when this happens. I think there should probably at least be a fixit warning that says something about there being an ambiguity here and offering the user fix it with either `Optional.none` or `MyTest.none`.
The text was updated successfully, but these errors were encountered: