Files
kotlin-fork/compiler/fir/resolve/testData/diagnostics/callableReferences/beyoundCalls.kt
T
Denis Zharkov fe8cd195aa FIR: Support callable references outside of the calls
^KT-32725 In Progress
2019-10-28 17:07:15 +03:00

15 lines
259 B
Kotlin
Vendored

fun bar(x: String): Int = 1
fun bar(x: String): Double = 1
fun baz(x: String): Int = 1
fun <T, R> foobaz(x: T): R = TODO()
fun foo() {
val x: (String) -> Int = ::bar
val y = ::bar
val z = ::baz
val w: (String) -> Int = ::foobaz
::baz
}