Nested lambda has shadowed implicit parameter: do not report when lambda is in scope function

#KT-30173 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-03-19 16:19:47 +09:00
committed by Mikhail Glukhikh
parent daf8df9e4b
commit a2adfd0cc0
9 changed files with 112 additions and 3 deletions
@@ -0,0 +1,11 @@
// FIX: Replace 'it' with explicit parameter
// WITH_RUNTIME
fun main() {
listOf(42).map {
it == 42
1.also {
<caret>it == 42
}
}
}