9 lines
146 B
Kotlin
Vendored
9 lines
146 B
Kotlin
Vendored
fun Short.foo(): Int = 1
|
|
fun Int.foo(): Int = 2
|
|
|
|
fun testRef(f: () -> Int) {}
|
|
|
|
fun test() {
|
|
// should resolve to Int.foo
|
|
testRef(1::foo)
|
|
} |