"Nested lambda has shadowed implicit parameter": Do not report if 'it' paramerter is not used #KT-26268 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-08-21 11:41:08 +09:00
committed by Vyacheslav Gerasimov
parent f3879af9f6
commit 7800f42840
7 changed files with 31 additions and 6 deletions
@@ -1,8 +1,10 @@
fun foo(f: (String) -> Unit) {}
fun bar(s: String) {}
fun test() {
foo {
<caret>foo {
bar(it)
}
}
}
@@ -1,8 +1,10 @@
fun foo(f: (String) -> Unit) {}
fun bar(s: String) {}
fun test() {
foo { it ->
foo {
bar(it)
}
}
}
@@ -1,9 +1,11 @@
fun foo(f: (String) -> Unit) {}
fun bar(s: String) {}
fun test() {
foo {
foo { s ->
<caret>foo {
bar(it)
}
}
}
@@ -1,9 +1,11 @@
fun foo(f: (String) -> Unit) {}
fun bar(s: String) {}
fun test() {
foo { it ->
foo { s ->
foo {
bar(it)
}
}
}
@@ -0,0 +1,10 @@
// PROBLEM: none
fun foo(f: (String) -> Unit) {}
fun test() {
foo {
<caret>foo {
}
}
}