summaryrefslogtreecommitdiff
path: root/test/files/run/t4024.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t4024.scala')
-rw-r--r--test/files/run/t4024.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t4024.scala b/test/files/run/t4024.scala
new file mode 100644
index 0000000000..b822a7781c
--- /dev/null
+++ b/test/files/run/t4024.scala
@@ -0,0 +1,9 @@
+object Test extends Application {
+
+ val x = "abc"
+
+ val m = x.getClass.getMethod("toString")
+
+ assert(m.invoke(x, (Nil: List[AnyRef]): _*) == "abc")
+}
+