Hi All, I've got a simple question for you :) I have the following Scala code, which compiles and gives an error. Actually I am expecting the code not be compiled as it has an abstract type CT. And the error is even more confusing as the scala says it can't find the type CT.
class Currency { type ct=Currency }
val c = new Currency
println(c.ct)
error: value ct is not a member of Currency
I appreciate your comments,
Thanks, -A
PS - Using sala 2.7.7