Here is an example from Scala's Programming Book
object Color extends Enumeration { //val Red, Green, Blue = Value val Red = Value("Red") val Green = Value("Green") } for (d <- Color) print(d + " ") //Error value foreach is not a member of // object xxx.Color
I have the latest version of Scala. Is this the cause of the error?
scala
Lukasz Madon
source share