Skip to content

Commit bcf70e2

Browse files
committed
Test case for problems with lambda lifting.
1 parent 6c8a242 commit bcf70e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/llift.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class A {
2+
class B {
3+
def outer(): Unit = {
4+
def inner(): Int = 2
5+
6+
val fi: Function0[Int] = () => inner()
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)