class A { fun foo(a: Int, b: Int): Int { fun i(): Int { return a + b - 1 } return { i() }.invoke() } }