Sfoglia il codice sorgente

always fully force fixed values

Getty Ritter 2 anni fa
parent
commit
5e324317cc
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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));