-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
SpreeSuitable for a future SpreeSuitable for a future Spreearea:implicitsrelated to implicitsrelated to implicitsitype:bug
Milestone
Description
As CanEqual is contravariant, this should be valid and is likely the root cause for issues around matching Nil/None under strict equality:
scala> implicitly[CanEqual[String, Nothing]]
val res0: CanEqual[String, Nothing] = scala.CanEqual$derived$@7c6b997b
scala> implicitly[CanEqual[Int, Nothing]]
-- Error:
1 |implicitly[CanEqual[Int, Nothing]]
| ^
| Values of types Int and Nothing cannot be compared with == or !=
Metadata
Metadata
Assignees
Labels
SpreeSuitable for a future SpreeSuitable for a future Spreearea:implicitsrelated to implicitsrelated to implicitsitype:bug