fun foo() { val v: (Int) -> Unit = { if (it > 1) { bar() } } } fun bar(){}