Is there any way to refer to a type parameter?
For example i have wantd to make a class that gets Sub class of Enumeration and than use him: example of what i wanted :
class MyEnum1 extends Enumeration{
type MyEnum=Value
a1=Value("A1")
b1=Value("B1")
}
class MyEnum2 extends Enumeration{
type MyEnum=Value
a2=Value("A2")
b2=Value("B2")
}
class UseType[T:<Enumeration]{
val values=T.values
}
Do you know how can i do it?