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
10 lines
141 B
Kotlin
Vendored
10 lines
141 B
Kotlin
Vendored
interface Foo
|
|
|
|
val Foo.foo: String
|
|
get() = ""
|
|
|
|
fun test(obj: Foo) {
|
|
consume(<expr>obj::foo</expr>)
|
|
}
|
|
|
|
fun consume(f: () -> String) {} |