将 lambda 替换为可调用引用而不将大括号更改为圆括号是常见错误。
示例:
listOf(1,2,3).map { it::toString }
在应用快速修复后:
listOf(1,2,3).map(Int::toString)