Pārlūkot izejas kodu

always fully force fixed values

Getty Ritter 2 gadi atpakaļ
vecāks
revīzija
5e324317cc
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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));