Correct read/write access detection in case of plusAssign etc

This commit is contained in:
Valentin Kipyatkov
2015-08-17 23:01:58 +03:00
parent 97bf6f820a
commit 4876668716
8 changed files with 68 additions and 34 deletions
@@ -0,0 +1,10 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetProperty
// OPTIONS: usages
class C
fun C.plusAssign(p: Int) = this
fun foo() {
val <caret>c = C()
c += 10
}
@@ -0,0 +1 @@
Value read (9: 5) c += 10