I started learning scala and I have little problem. I want to convert string value into Enum but occur error No value found for "TEST". What mistake did I?
object Function1 extends Enumeration {
val TEST = Value("1")
val TES = Value("2")
val TE = Value("3")
}
println(Function1 withName "TEST")