blob: 2e72ef220bd6d9d1dc646150cacf94a2171d5192 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
object Main extends Application {
//object Foo extends Enumeration { // 1: OK !
object Foo extends Enumeration(0, "Bar") { // 2
val Bar = Value
}
import Foo._;
Console.println(Bar)
}
|