class Y { fun foo(f: () -> Unit) { f() } }