Retain data flow info after assignment operations (+= etc)
#KT-2825 In Progress
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user