summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/run/bug1141.check2
-rw-r--r--test/files/run/bug1141.scala7
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/bug1141.check b/test/files/run/bug1141.check
new file mode 100644
index 0000000000..7262160d1d
--- /dev/null
+++ b/test/files/run/bug1141.check
@@ -0,0 +1,2 @@
+var
+args
diff --git a/test/files/run/bug1141.scala b/test/files/run/bug1141.scala
new file mode 100644
index 0000000000..6c8e1c7399
--- /dev/null
+++ b/test/files/run/bug1141.scala
@@ -0,0 +1,7 @@
+object Test extends Application {
+ val foo = new {
+ def apply(args : String*) = args foreach println
+ }
+
+ foo("var", "args")
+} \ No newline at end of file