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
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 !=