diff options
author | Paul Phillips <paulp@improving.org> | 2010-09-22 21:05:51 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-09-22 21:05:51 +0000 |
commit | a7ea942cfee40b1892dc8166c6429eb811561189 (patch) | |
tree | 720a395c45972731eb5934124dac7732777c615c /test | |
parent | d5baff39ed0f25a39818591dbbd069551352b91d (diff) | |
download | scala-a7ea942cfee40b1892dc8166c6429eb811561189.tar.gz scala-a7ea942cfee40b1892dc8166c6429eb811561189.tar.bz2 scala-a7ea942cfee40b1892dc8166c6429eb811561189.zip |
Test case closes #3498, no review.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/bug3498.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/bug3498.scala b/test/files/pos/bug3498.scala new file mode 100644 index 0000000000..bcc90ca64c --- /dev/null +++ b/test/files/pos/bug3498.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 |