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
Matching on a None within a test leads to a ClassCastException under Scala 3.0.0-M3. A couple of notes:
this only happens when the match is defined directly in a test; it does not occur if the match is defined elsewhere (as can be seen in the "indirect" test below)
this type of error also manifests itself when matching on other wrapper types that extend some base type with a Nothing type parameter. E.g. matching Nil or Failure()
the error only occurs when matching None and the first case does not match (see snippet)
Matching on a
None
within a test leads to a ClassCastException under Scala 3.0.0-M3. A couple of notes:test
; it does not occur if the match is defined elsewhere (as can be seen in the "indirect" test below)Nothing
type parameter. E.g. matchingNil
orFailure()
The text was updated successfully, but these errors were encountered: