Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/explicitReceiver.kt
T
2020-03-19 09:51:01 +03:00

25 lines
315 B
Kotlin
Vendored

fun x() {
}
class Foo {
val x: Foo = Foo()
operator fun invoke(): Foo { return this }
fun bar() = x() // Should resolve to invoke
}
class Bar {
fun x() {}
val x: Bar = Bar()
operator fun invoke(): Bar { return this }
fun baz() {
x() // Should resolve to fun x()
}
}