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
//>usingscala"3.3.1"//>usingfile"unreachable_opaque.scala"//Works for Seq and Set, does not work for List and VectorvaloptionList:Option[Test[List[Int]]] =???
optionList matchcaseSome(value) =>???// Compile warning: Unreachable casecaseNone=>???
Compiler version
3.3.1
Minimized code
unreachable.sc
unreachable_opaque.scala
Output
Note that this only happen in very specific situations. Removing
<: A
fromTest
definition or replacingList
bySeq
orSet
also removes the warning.Expectation
No "unreachable case" warning since the case is actually reachable.
The text was updated successfully, but these errors were encountered: