[FIR] Add missing tests to resolve

Merge-request: KT-MR-11666
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com>
This commit is contained in:
Egor Kulikov
2023-08-17 10:54:39 +00:00
committed by Space Team
parent 833c8b2cd4
commit ae85c7bfe3
11 changed files with 107 additions and 0 deletions
@@ -0,0 +1,4 @@
class Foo {
operator fun contains(v: Int) = true
}
fun foo() = 0 <caret>in Foo()
@@ -0,0 +1,2 @@
Resolved to:
0: (in Foo) operator fun contains(v: kotlin.Int): kotlin.Boolean
@@ -0,0 +1,3 @@
fun foo() {
return@<caret>foo
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun foo()
@@ -0,0 +1,4 @@
class Foo {
operator fun contains(v: Int) = true
}
fun foo() = 0 <caret>!in Foo()
@@ -0,0 +1,2 @@
Resolved to:
0: (in Foo) operator fun contains(v: kotlin.Int): kotlin.Boolean