[SR-4795] Useless diagnostic: "cannot convert value of type 'A' to expected argument type '_OptionalNilComparisonType'" #47372
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
Environment
Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42)
Swift version 4.0 (swiftlang-900.0.59 clang-900.0.34.2)
Additional Detail from JIRA
md5: 78762227283443b6be314c66dc4da4b8
Issue Description:
This code:
Produces:
Instead of pointing out that A does not implement Equatable.
This is similar to SR-4318. In both cases Swift can't produce the actually helpful diagnostic pointing out that the type doesn't implement Equatable.
The text was updated successfully, but these errors were encountered: