[checkpoint] Start the switch to type inference.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user