blob: 777b97f9ab669927cd6337992883edaddeb7b19b (
plain) (
tree)
|
|
object X extends Enumeration {
val Y = Value
}
object Fruit extends Enumeration {
val x = X.Y
val A,B,C = Value
}
object Test {
def main(args: Array[String]): Unit = {
println(Fruit.values)
}
}
|