diff options
Diffstat (limited to 'tests/disabled/java-interop/failing/varargs-bridge')
-rw-r--r-- | tests/disabled/java-interop/failing/varargs-bridge/A.java | 8 | ||||
-rw-r--r-- | tests/disabled/java-interop/failing/varargs-bridge/B.scala | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/disabled/java-interop/failing/varargs-bridge/A.java b/tests/disabled/java-interop/failing/varargs-bridge/A.java new file mode 100644 index 000000000..3cd92864b --- /dev/null +++ b/tests/disabled/java-interop/failing/varargs-bridge/A.java @@ -0,0 +1,8 @@ +package test; +public class A { + + int foo(int... x) { + return x.length; + } + +}
\ No newline at end of file diff --git a/tests/disabled/java-interop/failing/varargs-bridge/B.scala b/tests/disabled/java-interop/failing/varargs-bridge/B.scala new file mode 100644 index 000000000..efd81b0bf --- /dev/null +++ b/tests/disabled/java-interop/failing/varargs-bridge/B.scala @@ -0,0 +1,7 @@ +package test +class B extends A { + override def foo(x: Int*): Int = x.length + 1 +} +object B extends App { + println(new B().foo(1, 2, 3)) +} |