diff options
Diffstat (limited to 'tests/disabled/not-representable/pos/t3498-old.scala')
-rw-r--r-- | tests/disabled/not-representable/pos/t3498-old.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/disabled/not-representable/pos/t3498-old.scala b/tests/disabled/not-representable/pos/t3498-old.scala new file mode 100644 index 000000000..118a8d849 --- /dev/null +++ b/tests/disabled/not-representable/pos/t3498-old.scala @@ -0,0 +1,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)) + } +} |