Files
kotlin-fork/compiler/testData/ir/irText/expressions/augmentedAssignment1.kt
T
Dmitry Petrov 0b647ac358 Basic class members generation.
Split testData into 'classes' and 'expressions'.
2016-10-18 09:08:32 +03:00

19 lines
182 B
Kotlin
Vendored

var p = 0
fun testVariable() {
var x = 0
x += 1
x -= 2
x *= 3
x /= 4
x %= 5
}
fun testProperty() {
p += 1
p -= 2
p *= 3
p /= 4
p %= 5
}