[checkpoint] Start the switch to type inference.

This commit is contained in:
2023-06-19 21:16:28 -07:00
parent b931ba5b17
commit 3687785540
10 changed files with 424 additions and 284 deletions

View File

@@ -21,12 +21,12 @@ impl Program {
impl Statement {
fn register_strings(&self, string_set: &mut HashSet<ArcIntern<String>>) {
match self {
Statement::Binding(_, name, expr) => {
Statement::Binding(_, name, _, expr) => {
string_set.insert(name.clone());
expr.register_strings(string_set);
}
Statement::Print(_, name) => {
Statement::Print(_, _, name) => {
string_set.insert(name.clone());
}
}