blob: 91eb2d9b7d119f6035d65454da019aef7ad3ac86 (
plain) (
tree)
|
|
object Test extends Application {
def test() {
abstract class A[T] {
def myVal: T
}
class B[T1](value: T1) extends A[T1] {
def myVal: T1 = value
}
Console.println(new B[int](23).myVal)
}
}
|