1 2 3 4 5 6 7 8 9
class Test extends Enumeration { val A = Value } object Test extends Test object Test5147 { def main(args: Array[String]): Unit = { println(Test.A) } }