For each parameter unused: support correctly it() case

Related to KT-22068
This commit is contained in:
Mikhail Glukhikh
2018-08-09 12:53:09 +03:00
parent 0757533558
commit 6048647812
4 changed files with 36 additions and 4 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.ForEachParameterNotUsedInspection
@@ -0,0 +1,10 @@
// PROBLEM: none
// WITH_RUNTIME
class My {
operator fun invoke() {}
}
fun bar(my: List<My>) {
my.for<caret>Each { it() }
}