blob: 91311d86ae0bd9d96ba2d078664b1aaaa39cf051 [file]
// RUN_PIPELINE_TILL: CODEGEN
// ISSUE: KT-40674
fun main() {
genericLet("", ::foo) // Should be Ok
genericLet<String>("", ::foo) // Should be Ok
nonGeneric(::foo) // OK
}
fun <T> genericLet(t: T, b: (T) -> Unit) {}
fun nonGeneric(x: (String) -> Unit) {}
fun <T> foo(vararg elements: T) {}
/* GENERATED_FIR_TAGS: callableReference, functionDeclaration, functionalType, nullableType, stringLiteral,
typeParameter, vararg */