Files
kotlin-fork/idea/testData/inspectionsLocal/forEachParameterNotUsed/safe.kt
T
Mikhail Glukhikh 11909a86a8 For each parameter not used: introduce "replace with repeat"
An enhancement for KT-27209
2018-12-11 16:42:03 +03:00

5 lines
78 B
Kotlin
Vendored

// WITH_RUNTIME
fun test(list: List<String>?) {
list?.for<caret>Each {}
}