Fix params

This commit is contained in:
2026-04-22 21:47:11 +02:00
parent aedf80822c
commit b4edb33cbc
3 changed files with 39 additions and 33 deletions
-5
View File
@@ -26,11 +26,6 @@ pub fn walk_ast(top_scope: Arc<Scope>, tl: &mut Vec<parser::ast::TopLevel>) {
*name = rf.name.clone();
}
match &*rf.var_type {
hir::TypeRef::Function(f) => walk_param_list(&f.params, params),
_ => unimplemented!(),
}
let scope = LocalScope::new(top_scope.clone());
scope.with_params(params);