Files
kotlin-fork/idea/testData/inspectionsLocal/redundantLambdaArrow/notApplicableVararg.kt
T
Dmitry Gridin 479e812bbc Fix false positive "Redundant lambda arrow" inspection
#KT-29590 Fixed
 #KT-19462 Fixed
 #KT-29124 Fixed
2019-03-13 20:57:30 +07:00

13 lines
243 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun main() {
registerHandler(handlers = *arrayOf(
{ _<caret> -> },
{ it -> }
))
}
fun registerHandler(vararg handlers: (String) -> Unit) {
handlers.forEach { it.invoke("hello") }
}