Kotlin
Nested lambda has shadowed implicit parameter
Info
New
Last modified: 03 December 2024Reports 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)
}
}
}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
NestedLambdaShadowedImplicitParameter
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Kotlin, 243.23126-IJ |
Thanks for your feedback!
Was this page helpful?