1 2 3 4 5 6 7 8 9 10 11 12
object test { def f[a](x: a) = { def print = x class A { def f() = { class B { def h = print } new B } f() } } }