Refine postfix operators handling.
This commit is contained in:
@@ -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::<()>(
|
||||
|
Reference in New Issue
Block a user