[SR-14428] Comparing enum with associated value gives misleading error about unrelated enum #56784
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
Xcode 12.3 (12C33)
Swift 5.3.2
Additional Detail from JIRA
md5: 9f4a26cf301fa8520c494a92dff48ec0
duplicates:
Issue Description:
Given an enum with a case with an associated value:
You get this error message:
Cannot convert value of type 'Something' to expected argument type 'UICellConfigurationState.DragState'
One would expect an error message related to the impossibility of comparing an enum with associated value that is not declared Equatable, or at least related to the enum itself, but the compiler tries to compare it to a totally unrelated enum in an imported module.
The text was updated successfully, but these errors were encountered: