diff options
Diffstat (limited to 'test/pos/lambdalift1.scala')
-rw-r--r-- | test/pos/lambdalift1.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/pos/lambdalift1.scala b/test/pos/lambdalift1.scala new file mode 100644 index 0000000000..e4c7b3a801 --- /dev/null +++ b/test/pos/lambdalift1.scala @@ -0,0 +1,17 @@ +import scala._; + +module test { + + def f[a <: java.lang.Object](x: a) = { + def print() = java.lang.System.out.println(x); + class A() { + def g() = { + class B() { + def h() = print() + } + new B().h() + } + } + new A().g() + } +}
\ No newline at end of file |