Postfix '++' & '--' works (prefix & postfix are both tested)

This commit is contained in:
2025-01-09 18:33:10 +11:00
parent 6f16c31f24
commit 14696833fd
6 changed files with 140 additions and 16 deletions

View File

@@ -9,5 +9,18 @@
assert --a == 42;
assert a == 42;
print a;
}
//increment & decrement (postfix)
{
var a = 42;
assert a == 42;
assert a++ == 42;
assert a == 43;
assert a-- == 43;
assert a == 42;
print a;
}