summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-10-28 19:35:57 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-10-28 19:35:57 -0300
commitc1210b511af8ffada948550180360859b64009d2 (patch)
tree03f58b58da101e557c48a06bca18a1ee15f4f192
parentbdb078a5416a65a976cc96d70521d7da32c9b689 (diff)
Fix errors
-rw-r--r--src/vm/de.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/vm/de.rs b/src/vm/de.rs
index a4efad5..985b1b2 100644
--- a/src/vm/de.rs
+++ b/src/vm/de.rs
@@ -527,7 +527,7 @@ where
         let old_collecting = self.collecting;
         let pat = self.interp.pat;
         let mut collecting = old_collecting;
-        self.frames_mut().iter_active_mut().try_for_each(|frame| {
+        let typeck = self.frames_mut().iter_active_mut().try_for_each(|frame| {
             let ty = frame.get_type();
             match ty {
                 | Some((Type::Map, _))
@@ -547,7 +547,14 @@ where
                 collecting = true;
             }
             Ok(())
-        })?;
+        });
+        match typeck {
+            Err(e) => {
+                self.interp.error.insert(e);
+                return Err(todo!());
+            },
+            _ => (),
+        }
         if let Err(e) = self.step_in() { return Err(e); }
         self.collecting = collecting;
         let mut subframes = Vec::new();