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:
I've recently had trouble with UITableViewCellSelectionStyle. I have a function that accepts an optional UITableViewCellSelectionStyle. Optional has a "none" case, and "UITableViewCellSelectionStyle" too. This means that passing a .none is ambiguous (due to implicit casting to optional), as it could be interpreted as a nil value or a .some(.none). I think the best solution here would be to show an error if there is ambiguity.
The text was updated successfully, but these errors were encountered:
Environment
Swift 4.1. Xcode 9.4.1 (9F2000)
Additional Detail from JIRA
md5: 68ab709c536ebb2fa5115f5c16020a6d
duplicates:
Issue Description:
I've recently had trouble with UITableViewCellSelectionStyle. I have a function that accepts an optional UITableViewCellSelectionStyle. Optional has a "none" case, and "UITableViewCellSelectionStyle" too. This means that passing a .none is ambiguous (due to implicit casting to optional), as it could be interpreted as a nil value or a .some(.none). I think the best solution here would be to show an error if there is ambiguity.
The text was updated successfully, but these errors were encountered: