Added short-circuiting support to && and ||

This commit is contained in:
2023-03-11 17:59:09 +11:00
parent 68ed52b347
commit f2f8aed23a
4 changed files with 21 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
//explicitly support && and || short circuits
assert 1 && 2 == 2, "&& short-circuit failed";
assert 1 || 2 == 1, "|| short-circuit failed";
print "All good";