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
16 lines
315 B
Kotlin
Vendored
16 lines
315 B
Kotlin
Vendored
interface Foo {
|
|
val Bar.foo: String
|
|
get() = ""
|
|
}
|
|
|
|
interface Bar
|
|
|
|
fun test(foo: Foo) {
|
|
with(foo) {
|
|
// 'foo' is a member and an extension at the same time.
|
|
// References to such elements are prohibited.
|
|
consume(<expr>Bar::foo</expr>)
|
|
}
|
|
}
|
|
|
|
fun consume(f: (Bar) -> String) {} |