From 465b185452de3633d181eab83a7751b031dfa878 Mon Sep 17 00:00:00 2001 From: mlokr Date: Sat, 11 May 2024 22:23:58 +0200 Subject: [PATCH] foo bar --- hblang/src/codegen.rs | 2 +- hblang/test.bin | Bin 660 -> 466 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/hblang/src/codegen.rs b/hblang/src/codegen.rs index 3cfcff5..5db0a6d 100644 --- a/hblang/src/codegen.rs +++ b/hblang/src/codegen.rs @@ -397,7 +397,7 @@ impl<'a> Codegen<'a> { if let Some(val) = val { let val = self.expr(val, Some(self.ret)).unwrap(); if val.ty != self.ret { - panic!("expected {:?}, got {:?}", self.ret, val.ty); + //panic!("expected {:?}, got {:?}", self.ret, val.ty); } self.assign( Value { diff --git a/hblang/test.bin b/hblang/test.bin index 50f07108781966eba61495b681a727715fdea8b7..760c53371e52eb3440d9a1d74aac980c3c7fbff3 100644 GIT binary patch literal 466 zcmZ{h!41P83`I?)R;Z_JzzUtBmk2IN_Fto5aO;p5IjH!6tjEV6KC1%@0Om#X`5qM< zF{x!i^D^Lhz;VFSfX6GBOU%WbZ74LIt%W(?1ZUdcu$KjoT9f4H12Orewu07O4*96Y rJrU#E;Bx2ToJBR^g*DRFjKrTU{_`%2rth+Ayvw@r?r(%|;KcU_tkIvqt=HMa6`nxIqAfjOL*RdO#(dup<4756th^;aAPgQV18 vnCH90`Y_+tFDp5zRD18N_SnNCBF?F82=3c1if%+TXp=~M80;?N|KHskgLcB-