blob: 85d39cab5c5669a6e28da8110a98fcc0c61e81e0 [file]
// RUN_PIPELINE_TILL: CODEGEN
// DIAGNOSTICS: -UNUSED_PARAMETER
fun <A1> fun2(f: kotlin.reflect.KFunction1<A1, Unit>, a: A1) {
f.invoke(a)
}
fun containsRegex(vararg otherPatterns: String) {}
fun main() {
fun2(::containsRegex, arrayOf("foo"))
}
/* GENERATED_FIR_TAGS: callableReference, functionDeclaration, nullableType, outProjection, stringLiteral, typeParameter,
vararg */