Pseudocode: Generate correct values for postfix increment/decrement

This commit is contained in:
Alexey Sedunov
2014-06-23 13:53:08 +04:00
parent 7c837909d8
commit 50228fa085
8 changed files with 123 additions and 4 deletions
@@ -0,0 +1,11 @@
fun bar(n: Int) {
}
fun foo() {
var a = 1
bar(a++)
bar(a--)
bar(++a)
bar(--a)
}