ChaiScript/unittests/precedence_4.chai
Jason Turner 8b7fe33bf1 Fix order of operations for prefix and '*', '/'
The problem is that Prefix did not properly participate in
operator precedence. I've fixed this, at least for the moment,
by adding a final depth of precedence that can be called when
the depth gets to the bottom.

closes #285
2016-10-06 14:44:30 -06:00

5 lines
38 B
ChaiScript

var i = 2;
assert_equal(++i * i, 9)