diff options
Diffstat (limited to 'test/files/neg/bug4196.scala')
-rw-r--r-- | test/files/neg/bug4196.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/bug4196.scala b/test/files/neg/bug4196.scala new file mode 100644 index 0000000000..06e1f28d54 --- /dev/null +++ b/test/files/neg/bug4196.scala @@ -0,0 +1,6 @@ +object Weird { + { (s: String) => + val foo = Some(s); // to illustrate that vals are printed in the error + foo + }.apply("first param") ("spurious param") +}
\ No newline at end of file |