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
Same happens when I replace pat-mat with if (in.isInstanceOf[Obj[In]] && out.isInstanceOf[Obj[Out]]) ; if I put place-holders like in.isInstanceOf[Obj[_]] and cast afterwards, it compiles. So doesn't actually require pattern matching.
Minimized code
Output
https://scastie.scala-lang.org/hzmyXFSrRoq4Na9ZMsIkTQ
Expectation
should compile ( https://scastie.scala-lang.org/UL2Je3yATT6MukbzvP0qRA )
The text was updated successfully, but these errors were encountered: