Incorrect type checking in pattern match when a class inherits a case class #9795
Labels
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
typer
Milestone
Following code looks perfectly fine, but scalac 2.11.8 generates an error message.
Code:
Error:
However, if we annotate
a
withval a:A = new B(1)
, everything is fine.The text was updated successfully, but these errors were encountered: