aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t7011.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t7011.scala')
-rw-r--r--tests/pos/t7011.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/t7011.scala b/tests/pos/t7011.scala
new file mode 100644
index 000000000..f1f71b9be
--- /dev/null
+++ b/tests/pos/t7011.scala
@@ -0,0 +1,7 @@
+object bar {
+ def foo: Unit = {
+ lazy val x = 42
+
+ {()=>x}
+ }
+}