Return error candidates from KtFirArrayAccessReference.resolveToSymbols

This commit is contained in:
Mads Ager
2021-12-16 14:20:19 +01:00
committed by Ilya Kirillov
parent 6d6480a662
commit 61265a6501
11 changed files with 61 additions and 6 deletions
@@ -0,0 +1,5 @@
fun Int.get(index: Int) = 42
fun f() {
1<caret>[2]
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun kotlin.Int.get(index: kotlin.Int): kotlin.Int
@@ -0,0 +1,5 @@
operator fun Int.get(index: Int) = 42
fun f() {
1<caret>[2]
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) operator fun kotlin.Int.get(index: kotlin.Int): kotlin.Int
@@ -0,0 +1,5 @@
fun Int.set(index: Int, value: Int) = value
fun f() {
1<caret>[2] = 42
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) fun kotlin.Int.set(index: kotlin.Int, value: kotlin.Int): kotlin.Int
@@ -0,0 +1,5 @@
operator fun Int.set(index: Int, value: Int) = value
fun f() {
1<caret>[2] = 42
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) operator fun kotlin.Int.set(index: kotlin.Int, value: kotlin.Int): kotlin.Int