summaryrefslogtreecommitdiff
path: root/test/files/run/t7374
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-02-09 22:29:11 +0100
committerJason Zaugg <jzaugg@gmail.com>2014-02-09 22:29:11 +0100
commit45cfc7b3a242f0be0397c5eb3946356bf3446dc9 (patch)
tree5cc1d170597b596833dc724ed82ea491e9e9c295 /test/files/run/t7374
parentf8d80ea26a03a39fd1d0160a2fad69752712f574 (diff)
downloadscala-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/t7374')
-rw-r--r--test/files/run/t7374/Some.scala3
-rw-r--r--test/files/run/t7374/Test.java7
2 files changed, 10 insertions, 0 deletions
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());
+ }
+}