Refine postfix operators handling.

This commit is contained in:
Stephen Chung
2020-04-17 19:00:52 +08:00
parent 3a93ab8240
commit 5d9a99cefc
3 changed files with 83 additions and 88 deletions

View File

@@ -9,10 +9,10 @@ fn test_stack_overflow() -> Result<(), EvalAltResult> {
engine.eval::<i64>(
r"
fn foo(n) { if n == 0 { 0 } else { n + foo(n-1) } }
foo(30)
foo(25)
",
)?,
465
325
);
match engine.eval::<()>(