Welcome to Scala version 2.8.1.final (Java HotSpot(TM) Client VM, Java 1.6.0_22). Type in expressions to have them evaluated. Type :help for more information.
scala> object Color extends Enumeration { | val Red, Green, Orange, Black = Value | } defined module Color
scala> for (col <- Color.values) | println(col) Red Green Orange Black
scala> import Color._ import Color._
scala> for (col <- Color.values) | println(col) Red Green Orange Black Value
What is the Value doing there in the last line?
The problem can be avoided by replacing the import statement by