blob: 91eb2d9b7d119f6035d65454da019aef7ad3ac86 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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)
}
}
|