"Nested lambda has shadowed implicit parameter": show warning on the shadowing 'it' reference

This commit is contained in:
Toshiaki Kameyama
2018-08-29 10:36:49 +09:00
committed by Vyacheslav Gerasimov
parent 7fdbcda91d
commit 97150cb0e2
9 changed files with 27 additions and 16 deletions
@@ -4,8 +4,8 @@ fun bar(f: (Int) -> Unit) {}
fun test() {
foo {
val s: String = it
<caret>bar {
val i: Int = it
bar {
val i: Int = it<caret>
}
}
}