summaryrefslogtreecommitdiff
path: root/test/files/jvm/t1342
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm/t1342')
-rw-r--r--test/files/jvm/t1342/JI.java3
-rw-r--r--test/files/jvm/t1342/SI.scala10
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/jvm/t1342/JI.java b/test/files/jvm/t1342/JI.java
new file mode 100644
index 0000000000..2de46d9084
--- /dev/null
+++ b/test/files/jvm/t1342/JI.java
@@ -0,0 +1,3 @@
+interface JI {
+ void varArgsMethod( String ... args );
+}
diff --git a/test/files/jvm/t1342/SI.scala b/test/files/jvm/t1342/SI.scala
new file mode 100644
index 0000000000..8e3b753210
--- /dev/null
+++ b/test/files/jvm/t1342/SI.scala
@@ -0,0 +1,10 @@
+class SI extends JI {
+ def varArgsMethod( args : String*) {
+ for( arg <- args ) println( arg )
+ }
+}
+
+object Test extends Application {
+ val x: JI = new SI
+ x.varArgsMethod("one", "two")
+}