"Nested lambda has shadowed implicit parameter": show warning on the shadowing 'it' reference
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
7fdbcda91d
commit
97150cb0e2
+3
-1
@@ -1,10 +1,12 @@
|
||||
// PROBLEM: none
|
||||
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
fun bar(s: String) {}
|
||||
|
||||
fun test() {
|
||||
foo {
|
||||
<caret>foo { s ->
|
||||
foo { s ->
|
||||
bar(it<caret>)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user