diff options
author | Martin Odersky <odersky@gmail.com> | 2015-06-03 17:59:29 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-06-03 18:10:45 +0200 |
commit | bcf70e27e0eef1b55c2e4afd8f680c0351810073 (patch) | |
tree | 874c93beea0cb95499420b2f7c29781155d08041 /tests/pos/llift.scala | |
parent | 6c8a2425148753d040ab2dbde6ac57349893b736 (diff) | |
download | dotty-bcf70e27e0eef1b55c2e4afd8f680c0351810073.tar.gz dotty-bcf70e27e0eef1b55c2e4afd8f680c0351810073.tar.bz2 dotty-bcf70e27e0eef1b55c2e4afd8f680c0351810073.zip |
Test case for problems with lambda lifting.
Diffstat (limited to 'tests/pos/llift.scala')
-rw-r--r-- | tests/pos/llift.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/llift.scala b/tests/pos/llift.scala new file mode 100644 index 000000000..51631ac97 --- /dev/null +++ b/tests/pos/llift.scala @@ -0,0 +1,9 @@ +class A { + class B { + def outer(): Unit = { + def inner(): Int = 2 + + val fi: Function0[Int] = () => inner() + } + } +} |