summaryrefslogblamecommitdiff
path: root/test/files/pos/bug342.scala
blob: f7e318e0a86e512f832aa19a1d1a5f3cddc82a75 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                        
object Main with Application {

//object Foo extends Enumeration {            // 1: OK !
  object Foo extends Enumeration(0, "Bar") {  // 2
    val Bar = Value
  }
  import Foo._;
  Console.println(Bar)
}