Files
kotlin-fork/analysis/analysis-api/testData/components/callResolver/resolveCall/arrayIncWithDotQualifier.kt
T
Anna Kozlova b026678a34 [LL] retrieve fir from generated property of desugaring ++ operator
^ KTIJ-24385
Temp property to store receiver is generated for `a.b++` expression.
If this property's psi corresponds to receiver expr, then FirProperty
would be found by mapper if receiver is requested.
It works unexpectedly, because FirProperty is normally not expected by expression.
This change set fake sources for generated FirProperty, so it won't be found
by source psi
2023-01-25 11:03:29 +00:00

10 lines
190 B
Kotlin
Vendored

// IGNORE_FE10
class F {
val a = arrayOf(1, 2)
fun handleLeftBracketInFragment() {
foo().<expr>peek()</expr>.a[0]++
}
fun foo() : F = F()
fun peek() : F = this
}