"Nested lambda has shadowed implicit parameter": minor improvements
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
b7c4248524
commit
fba539debf
+3
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Rename 'it'
|
||||
// FIX: Replace 'it' with explicit parameter
|
||||
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
fun bar(s: String) {}
|
||||
@@ -6,6 +6,8 @@ fun bar(s: String) {}
|
||||
fun test() {
|
||||
foo {
|
||||
foo {
|
||||
bar(it)
|
||||
bar(it)
|
||||
bar(it<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user