Redundant lambda arrow: do not report on nested lambda
#KT-29093 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
bf7f7c81b1
commit
2a7eb2fb0e
@@ -0,0 +1,7 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
listOf("A").forEach {
|
||||
setOf(1).map { <caret>_ -> it.length }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
listOf("A").forEach {
|
||||
listOf("B").forEach { _ ->
|
||||
setOf(1).map { <caret>_ -> it.length }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
listOf("A").forEach {
|
||||
setOf(1).map { <caret>_ ->
|
||||
val it = "B"
|
||||
it.length
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
listOf("A").forEach {
|
||||
setOf(1).map {
|
||||
val it = "B"
|
||||
it.length
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user