Fix call args

This commit is contained in:
2026-04-22 21:12:14 +02:00
parent 872fdf09e6
commit aedf80822c
+4 -2
View File
@@ -153,9 +153,11 @@ impl LocalScope {
} }
_ => unimplemented!(), _ => unimplemented!(),
}, },
Postfix::Call(_args) => match &*current_type { Postfix::Call(args) => match &*current_type {
TypeRef::Function(s) => { TypeRef::Function(s) => {
// TODO: arg checking for arg in args {
self.get_type_from_expr(arg);
}
current_type = s.return_type.clone()?; current_type = s.return_type.clone()?;
} }
_ => unimplemented!(), _ => unimplemented!(),