From 0ce248ef65575dce910c82e5714d808851557669 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 28 Oct 2009 14:41:00 +0000 Subject: Fixed #1342. --- test/files/jvm/t1342.check | 2 ++ test/files/jvm/t1342/JI.java | 3 +++ test/files/jvm/t1342/SI.scala | 10 ++++++++++ 3 files changed, 15 insertions(+) create mode 100644 test/files/jvm/t1342.check create mode 100644 test/files/jvm/t1342/JI.java create mode 100644 test/files/jvm/t1342/SI.scala (limited to 'test') 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") +} -- cgit v1.2.3