stack allocated structs, print ips in net examples

This commit is contained in:
2026-05-27 20:34:26 +02:00
parent 4fda79f0bc
commit 45253bf004
8 changed files with 70 additions and 35 deletions

View File

@@ -483,7 +483,10 @@ impl<'a> TypeChecker<'a> {
error!(&op.loc, "can only take address of variables and functions")
}
},
ExprKind::New(struct_name) => {
ExprKind::New {
struct_name,
use_heap: _,
} => {
if !self.symbol_table.structs.contains_key(&struct_name.lexeme) {
return error!(
&struct_name.loc,