prepare for modules

This commit is contained in:
2025-04-25 04:16:54 -04:00
parent 0ceb82445e
commit 4e7c201690
30 changed files with 369 additions and 333 deletions

View File

@@ -15,8 +15,8 @@ impl Node<PVarDef> {
None => Type::Infer,
};
Some(VarInst {
id: program.def_searchable(name, Some(UVar { ty, parent: None }), self.span),
span: self.span,
id: program.def_searchable(name, Some(UVar { ty, parent: None }), self.origin),
span: self.origin,
})
}
}