blob: a0b38df203ba158986b9f04124bea29f5099c193 [file]
// RUN_PIPELINE_TILL: CODEGEN
fun foo(x: () -> Int, y: Int) {}
fun bar(x: String): Int = 1
fun main() {
fun bar(): Int = 1
fun foo(x: (String) -> Int, y: String) {}
foo(::bar, 1)
foo(::bar, "")
}
/* GENERATED_FIR_TAGS: callableReference, functionDeclaration, functionalType, integerLiteral, localFunction,
stringLiteral */