go/types, types2: misleading error message when type param is not comparable #48712
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Consider the following invalid program:
The type checker produces the error
cannot compare x == t (operator == not defined for interface{})
, but that's not accurate. The real problem is thatT
is not comparable.CC @griesemer
The text was updated successfully, but these errors were encountered: