Working type checker with functions

This commit is contained in:
2026-04-16 10:03:24 +02:00
parent 819441bc29
commit 3e1fa5cd18
3 changed files with 11 additions and 16 deletions
+7
View File
@@ -92,6 +92,13 @@ impl LocalScope {
}
_ => unimplemented!(),
},
Postfix::Call(_args) => match &*current_type {
TypeRef::Function(s) => {
// TODO: arg checking
current_type = s.return_type.clone()?;
}
_ => unimplemented!(),
},
_ => unimplemented!(),
}
}