From e86b1be782c2c2f57e968557d7f91bbcc7b8b27f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Th=C3=B6rnros?= Date: Tue, 16 Feb 2021 21:10:03 +0100 Subject: fix the failing testcase --- src/lib.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 8821710..b39b4bb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -480,6 +480,12 @@ pub enum Op { /// Does not affect the stack. Define(usize), + /// Links the upvalues for the given constant + /// function. This updates the constant stack. + /// + /// Does not affect the stack. + Link(usize), + /// Calls "something" with the given number /// of arguments. The callable value is /// then replaced with the result. @@ -1275,11 +1281,11 @@ f :: fn -> fn -> { g := f() g() -q <=> 3 +q <=> 1 g() -q <=> 4 +q <=> 2 g() -q <=> 5 +q <=> 3 ", ); -- cgit v1.2.1