[FIR] Clarify testData for invokes

This commit is contained in:
Simon Ogorodnik
2020-07-30 14:40:46 +03:00
parent 74c6d2b951
commit 2a4e1a0b99
@@ -1,6 +1,6 @@
class Bar {
operator fun invoke(): Foo { return this }
operator fun invoke(): Foo { return this } // (1)
}
@@ -11,9 +11,9 @@ fun x() {
class Foo {
operator fun Bar.invoke(): Foo { return this }
operator fun Bar.invoke(): Foo { return this } // (2)
val x: Bar = Bar()
fun bar() = x() // Should resolve to invoke
fun bar() = x() // Should resolve to invoke (1)
}