I have a toy class with type member T
.
class A { type T = Int }
How can I access my type member. e.g. get the type or modify it.
val a = new A
a.T = String //error: value T is not a member of A
Since T
is my member , why I can not access it?