diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2010-07-08 15:59:15 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2010-07-08 15:59:15 +0000 |
commit | 3a1d34eebfb06ec3d66a46509b368256318510d1 (patch) | |
tree | f178062f795047608673eff2f6b9c8975d85bc8f /test/files/pos | |
parent | 27cdc8ab7f0d688a8fa81dffae2e1b26ac342edb (diff) | |
download | scala-3a1d34eebfb06ec3d66a46509b368256318510d1.tar.gz scala-3a1d34eebfb06ec3d66a46509b368256318510d1.tar.bz2 scala-3a1d34eebfb06ec3d66a46509b368256318510d1.zip |
closes #3486.
fixed by having mixin do the cloning at the beginning of erasure and
then updating the symbol's info to transform it to be valid in current
phase
review by odersky
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t3486/JTest.java | 3 | ||||
-rw-r--r-- | test/files/pos/t3486/test.scala | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t3486/JTest.java b/test/files/pos/t3486/JTest.java new file mode 100644 index 0000000000..0bf388b72d --- /dev/null +++ b/test/files/pos/t3486/JTest.java @@ -0,0 +1,3 @@ +public class JTest<A> extends T2<A> { + public A m( A a ) { return a; } +}
\ No newline at end of file diff --git a/test/files/pos/t3486/test.scala b/test/files/pos/t3486/test.scala new file mode 100644 index 0000000000..544232b0d1 --- /dev/null +++ b/test/files/pos/t3486/test.scala @@ -0,0 +1,6 @@ +trait Test[A] { + def m( a: A ): A + def specified(a:A):A = a +} + +abstract class T2[A] extends Test[A]
\ No newline at end of file |