summaryrefslogtreecommitdiff
path: root/test/files/run/t2111.scala
blob: 3c6c5b8e8f7455fcbb68eb26025fbc99ddf6b815 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
object Test extends Application {

  object Color extends Enumeration {
    val Red, Green, Blue = Value
  }

  class MyColor extends Enumeration {
    val Red, Green, Blue = Value
  }

  println(Color.Red)
  println(Color.Green)
  println(Color.Blue)
  val col = new MyColor
  println(col.Blue)
  println(col.Green)
  println(col.Red)

}