aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t3699.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t3699.scala')
-rw-r--r--tests/run/t3699.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run/t3699.scala b/tests/run/t3699.scala
new file mode 100644
index 000000000..f838bcb52
--- /dev/null
+++ b/tests/run/t3699.scala
@@ -0,0 +1,11 @@
+object Test {
+ def act: Int => Int = {
+ case _ =>
+ lazy val (a, b) = (3,9)
+ a
+ b
+ }
+ def main(args: Array[String]) = {
+ assert(act(1) == 9)
+ }
+}