aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorEdvard Thörnros <edvard.thornros@gmail.com>2021-02-16 21:10:03 +0100
committerEdvard Thörnros <edvard.thornros@gmail.com>2021-02-16 21:10:03 +0100
commite86b1be782c2c2f57e968557d7f91bbcc7b8b27f (patch)
tree22e603ce7b369b51dc1e2ceaeb63e64c51ea4bfd /src/lib.rs
parentecc84fc8259ab0f2f5754718ed70e3a57048a540 (diff)
downloadsylt-e86b1be782c2c2f57e968557d7f91bbcc7b8b27f.tar.gz
fix the failing testcase
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs12
1 files changed, 9 insertions, 3 deletions
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
",
);