"Nested lambda has shadowed implicit parameter": Do not report if 'it' paramerter is not used #KT-26268 Fixed
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
f3879af9f6
commit
7800f42840
+2
@@ -1,8 +1,10 @@
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
fun bar(s: String) {}
|
||||
|
||||
fun test() {
|
||||
foo {
|
||||
<caret>foo {
|
||||
bar(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
@@ -1,8 +1,10 @@
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
fun bar(s: String) {}
|
||||
|
||||
fun test() {
|
||||
foo { it ->
|
||||
foo {
|
||||
bar(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+2
@@ -1,9 +1,11 @@
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
fun bar(s: String) {}
|
||||
|
||||
fun test() {
|
||||
foo {
|
||||
foo { s ->
|
||||
<caret>foo {
|
||||
bar(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
@@ -1,9 +1,11 @@
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
fun bar(s: String) {}
|
||||
|
||||
fun test() {
|
||||
foo { it ->
|
||||
foo { s ->
|
||||
foo {
|
||||
bar(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// PROBLEM: none
|
||||
|
||||
fun foo(f: (String) -> Unit) {}
|
||||
|
||||
fun test() {
|
||||
foo {
|
||||
<caret>foo {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user