8540f47c15
#KT-40788 Fixed #KT-24616 Fixed back-port from kotlin-ide commit aa5580bb5a7e96b209cdaa1c82f4e485ee001ae8
16 lines
249 B
Kotlin
Vendored
16 lines
249 B
Kotlin
Vendored
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtProperty
|
|
// OPTIONS: usages
|
|
// OPTIONS: skipWrite
|
|
fun foo() {
|
|
var <caret>v = 1
|
|
(X@ v) = 2
|
|
print(v)
|
|
++ @X v
|
|
v--
|
|
print(-v)
|
|
v += 1
|
|
(v) -= 1
|
|
}
|
|
|
|
// ERROR: Unresolved reference: X
|