New check rules for inc, plus & plusAssign

KT-1176 arrayList[0]++. Setter is stored for array access expression when it's needed
This commit is contained in:
svtk
2012-02-03 12:07:21 +04:00
parent db07a33d59
commit 6251b413a2
12 changed files with 209 additions and 162 deletions
+8 -8
View File
@@ -35,12 +35,12 @@ class UnitIncDec() {
fun testUnitIncDec() {
var x = UnitIncDec()
x++
++x
x--
--x
x = <error>x++</error>
x = <error>x--</error>
x = <error>++x</error>
x = <error>--x</error>
x<error>++</error>
<error>++</error>x
x<error>--</error>
<error>--</error>x
x = <warning>x<error>++</error></warning>
x = <warning>x<error>--</error></warning>
x = <error>++</error>x
x = <warning><error>--</error>x</warning>
}