aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/not-representable/pos/t3498-old.scala
blob: 118a8d849fff95ef7abe1edca2a5a180d59247bc (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))
    }
}