示例:
fun square(a: Int, b: (Int) -> Int) { b(a * a) } fun foo() { square(2, { it }) }
在应用快速修复后:
fun foo() { square(2){ it } }