private[this] def which shadows superclass def is incorrectly called, resulting in IllegalAccessError #9334
Labels
access
backend
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
has PR
typer
Milestone
This compiles fine:
But explodes at runtime:
Note that dotty seems to do the correct thing here (that is, print "10").
The text was updated successfully, but these errors were encountered: