1 2 3 4 5 6 7 8 9 10 11 12 13 14
class S extends foo.bar.J { sss => val fn = () => { foo(S.this) } fn() } object Test { def main(args: Array[String]): Unit = { new S } }