0147d725fb
Strictly speaking, callable references are not calls. However, type arguments are still inferred for references, and 'KtCall' is the only place in Analysis API that exposes call-substituted types. ^KT-66485 Fixed
9 lines
135 B
Kotlin
Vendored
9 lines
135 B
Kotlin
Vendored
interface Foo
|
|
|
|
fun Foo.foo(a: Int) {}
|
|
|
|
fun test(foo: Foo) {
|
|
consume(<expr>Foo::foo</expr>)
|
|
}
|
|
|
|
fun consume(f: (Foo, Int) -> Unit) {} |