KT-66411 [AA] Add more tests for resolving compound set operators

This commit is contained in:
Roman Golyshev
2024-03-07 22:14:19 +01:00
committed by Space Team
parent 324d079111
commit 83a80a45a9
12 changed files with 124 additions and 1 deletions
@@ -0,0 +1,8 @@
<caret> resolved to:
0: (in kotlin.collections.MutableList) operator fun set(index: kotlin.Int, element: E): E
<caret_singleIfStatement> resolved to:
0: (in kotlin.collections.MutableList) operator fun set(index: kotlin.Int, element: E): E
<caret_singleWhenStatement> resolved to:
0: (in kotlin.collections.MutableList) operator fun set(index: kotlin.Int, element: E): E
@@ -2,4 +2,8 @@
fun a () {
val list = mutableListOf(1)
list<caret>[0] = 1
if (true) list<caret_singleIfStatement>[0] = 1
when { else -> list<caret_singleWhenStatement>[0] = 1 }
}
@@ -1,2 +1,8 @@
Resolved to:
<caret> resolved to:
0: (in kotlin.collections.MutableList) operator fun set(index: kotlin.Int, element: E): E
<caret_singleIfStatement> resolved to:
Nothing (Unresolved reference)
<caret_singleWhenStatement> resolved to:
Nothing (Unresolved reference)