diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-02-09 22:29:11 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-02-09 22:29:11 +0100 |
commit | 45cfc7b3a242f0be0397c5eb3946356bf3446dc9 (patch) | |
tree | 5cc1d170597b596833dc724ed82ea491e9e9c295 /test/files/run | |
parent | f8d80ea26a03a39fd1d0160a2fad69752712f574 (diff) | |
download | scala-45cfc7b3a242f0be0397c5eb3946356bf3446dc9.tar.gz scala-45cfc7b3a242f0be0397c5eb3946356bf3446dc9.tar.bz2 scala-45cfc7b3a242f0be0397c5eb3946356bf3446dc9.zip |
SI-7374 Test cases for fixed Java interop problem
Our generic signatures now match the erasure, so no
more nasty linkage errors.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t7374.check | 3 | ||||
-rw-r--r-- | test/files/run/t7374/Some.scala | 3 | ||||
-rw-r--r-- | test/files/run/t7374/Test.java | 7 |
3 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/t7374.check b/test/files/run/t7374.check new file mode 100644 index 0000000000..4efa6f7af3 --- /dev/null +++ b/test/files/run/t7374.check @@ -0,0 +1,3 @@ +List(2, 3) +ParVector(1, 2, 3) +List(1, 2) diff --git a/test/files/run/t7374/Some.scala b/test/files/run/t7374/Some.scala new file mode 100644 index 0000000000..3266a5642e --- /dev/null +++ b/test/files/run/t7374/Some.scala @@ -0,0 +1,3 @@ +object SomeScala { + def list = List(1, 2, 3) +} diff --git a/test/files/run/t7374/Test.java b/test/files/run/t7374/Test.java new file mode 100644 index 0000000000..02f86146ca --- /dev/null +++ b/test/files/run/t7374/Test.java @@ -0,0 +1,7 @@ +public class Test { + public static void main(String[] args) { + System.out.println(SomeScala.list().tail()); + System.out.println(SomeScala.list().par()); + System.out.println(SomeScala.list().init()); + } +} |