Inspectopedia Help

Nested lambda has shadowed implicit parameter

Reports nested lambdas with shadowed implicit parameters.

Example:

fun foo(listOfLists: List<List<String>>) { listOfLists.forEach { it.forEach { println(it) } } }

After the quick-fix is applied:

fun foo(listOfLists: List<List<String>>) { listOfLists.forEach { it.forEach { it1 -> println(it1) } } }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Kotlin, @snapshot@

Last modified: 13 July 2023