mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Fixed unary negation bug, removed newline from print
This commit is contained in:
7
test/scripts/or-chaining-bugfix.toy
Normal file
7
test/scripts/or-chaining-bugfix.toy
Normal file
@@ -0,0 +1,7 @@
|
||||
//This is just a check to ensure that unary minus doesn't screw up the AST
|
||||
|
||||
var xrel: int = 0;
|
||||
var yrel: int = 0;
|
||||
|
||||
assert (xrel > 1 || xrel < -1 || yrel > 1 || yrel < -1) == false, "or-chaining bugfix failed";
|
||||
|
||||
Reference in New Issue
Block a user