Files
kotlin-fork/analysis/low-level-api-fir/testdata/getOrBuildFir/calls/setOperator.kt
T
Anna Kozlova b81c210535 [AA] resolve array access expression to corresponding set operator
k1 would suggest `get` as well
 but with current fir structure with fake desugaring
 get is moved to the separate fake psi which doesn't exist
 thus the problem is ignored for now
 ^ KTIJ-24025
2022-12-21 10:45:40 +00:00

12 lines
198 B
Kotlin

package test
class B(val n: Int) {
operator fun set(i: Int, a: B) {}
operator fun get(i: Int) : B {}
operator fun inc() : B {}
}
fun test() {
var a = B(1)
<expr>a[2]</expr>++
}