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

11 lines
139 B
Kotlin
Vendored

class A
val <X> X.prop: Int get() = 1
fun <X> X.baz(): Int = 1
fun foo(x: (A) -> Int) {}
fun main() {
foo(A::prop)
foo(A::baz)
}