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

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Kotlin, 241.16690-IJ

Last modified: 29 April 2024