Browse Source

always fully force fixed values

Getty Ritter 2 years ago
parent
commit
5e324317cc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/interp.rs

+ 1 - 0
src/interp.rs

@@ -280,6 +280,7 @@ impl State {
                     _ => return Ok(()),
                 };
                 let val = self.eval(expr, &env)?;
+                let val = self.force(val)?;
                 self.root_scope
                     .borrow_mut()
                     .insert(*name, Thunk::Value(val));