Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/explicitReceiver2.kt
T
2020-08-28 00:12:16 +03:00

19 lines
235 B
Kotlin
Vendored

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