summaryrefslogtreecommitdiff
path: root/test/files/pos/t3498.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t3498.scala')
-rw-r--r--test/files/pos/t3498.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t3498.scala b/test/files/pos/t3498.scala
new file mode 100644
index 0000000000..bcc90ca64c
--- /dev/null
+++ b/test/files/pos/t3498.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))
+ }
+} \ No newline at end of file