Crash when defining AnyVal
values in REPL (due to java.lang.ClassNotFoundException
)
#17557
Labels
AnyVal
values in REPL (due to java.lang.ClassNotFoundException
)
#17557
Compiler version
Version 3.2.2
Reproduction steps
Start a Scala 3 REPL session:
$ scala -classpath "$(cs fetch -p com.github.j-mie6::parsley:4.2.10)"
In this session:
Output (click arrow to expand)
Additional information
This is not a problem with the Scala 2.13 REPL. Use of a
lazy val
prevents the crash:However, if
p
is printed at any point this causes the crash. For context, the class in question is defined as:Making it an
AnyVal
class (this appears to be referenced within the stack trace).With Scala 2.13 evaluating
p
in the REPL produces the output:The text was updated successfully, but these errors were encountered: