summaryrefslogtreecommitdiff
path: root/test/files/pos/t3498-old.scala
blob: bcc90ca64cb85ecf55960ed58071d2350a4de1f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
abstract class A[T, @specialized(scala.Int) U : Manifest] {
    def f(state: T): Array[U]
}

abstract class B extends A[ Array[Byte], Int ] {
    type T = Array[Byte]
    type U = Int

    val N = 0

    def f(state: T): Array[U] =
    {
        new Array[U](N + state(N))
    }
}