报告不使用可迭代值的
forEach
循环。
示例:
listOf(1, 2, 3).forEach { }
该快速修复会在
forEach
部分引入匿名形参:
listOf(1, 2, 3).forEach { _ -> }