mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
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
5 lines
38 B
ChaiScript
5 lines
38 B
ChaiScript
|
|
var i = 2;
|
|
|
|
assert_equal(++i * i, 9)
|