报告圆括号中可以移到外部的 lambda 表达式。

示例:


fun square(a: Int, b: (Int) -> Int) {
  b(a * a)
}

fun foo() {
  square(2, { it })
}

在应用快速修复后:


fun foo() {
  square(2){ it }
}