For each parameter unused: support correctly it() case
Related to KT-22068
This commit is contained in:
@@ -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() }
|
||||
}
|
||||
Reference in New Issue
Block a user