Retain data flow info after assignment operations (+= etc)

#KT-2825 In Progress
This commit is contained in:
Alexander Udalov
2012-11-08 22:24:33 +04:00
parent f949d9e804
commit a54e34282a
3 changed files with 33 additions and 14 deletions
@@ -0,0 +1,14 @@
fun bar1(x: Number, var y: Int) {
y += x as Int
x : Int
}
fun bar2(x: Number) {
<!UNRESOLVED_REFERENCE!>y<!> <!UNRESOLVED_REFERENCE!>+=<!> x as Int
x : Int
}
fun bar3(x: Number, y: Array<Int>) {
y[0] += x as Int
x : Int
}