summaryrefslogtreecommitdiff
path: root/test/files/jvm/t2163
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm/t2163')
-rw-r--r--test/files/jvm/t2163/t2163.java9
-rw-r--r--test/files/jvm/t2163/t2163.scala5
2 files changed, 14 insertions, 0 deletions
diff --git a/test/files/jvm/t2163/t2163.java b/test/files/jvm/t2163/t2163.java
new file mode 100644
index 0000000000..83bd37d212
--- /dev/null
+++ b/test/files/jvm/t2163/t2163.java
@@ -0,0 +1,9 @@
+import java.util.*;
+
+public class t2163 {
+ public void test() {
+ List<Integer> array = new ArrayList<Integer>();
+ T2163Scala<List> foo = new T2163Scala<List>(array);
+ foo.bar(array);
+ }
+}
diff --git a/test/files/jvm/t2163/t2163.scala b/test/files/jvm/t2163/t2163.scala
new file mode 100644
index 0000000000..f73b520cbe
--- /dev/null
+++ b/test/files/jvm/t2163/t2163.scala
@@ -0,0 +1,5 @@
+class T2163Scala[CC[X]](x: CC[Int]) {
+ def bar[DD[X]](meh: DD[Int]): CC[Int] = x
+}
+
+object Test extends App {}