diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/t1342.check | 2 | ||||
-rw-r--r-- | test/files/jvm/t1342/JI.java | 3 | ||||
-rw-r--r-- | test/files/jvm/t1342/SI.scala | 10 |
3 files changed, 15 insertions, 0 deletions
diff --git a/test/files/jvm/t1342.check b/test/files/jvm/t1342.check new file mode 100644 index 0000000000..814f4a4229 --- /dev/null +++ b/test/files/jvm/t1342.check @@ -0,0 +1,2 @@ +one +two 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") +} |