Closed
Description
minimized code
Num.scala
enum Num { case One }
Test.scala
object Test extends App {
Num.One
}
$ mkdir out2
$ sbt
> dotc -d out2 Num.scala
> dotc -d out2 -classpath out2 Test.scala
> dotr -classpath out2 Test
Exception in thread "main" java.lang.NoSuchFieldError: One
at Test$.<init>(Test_2.scala:2)
at Test$.<clinit>(Test_2.scala)
at Test.main(Test_2.scala)
expectation
Should run