Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/beyoundCalls.kt
T
2020-03-19 09:51:01 +03:00

15 lines
286 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 = <!UNRESOLVED_REFERENCE!>::bar<!>
val z = ::baz
val w: (String) -> Int = ::foobaz
::baz
}