Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/AssignmentOperation.kt
T
2013-02-13 18:08:37 +04:00

16 lines
260 B
Kotlin

fun bar1(x: Number, y: Int) {
var yy = y
yy += 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
}