Show bindings too in debug
This commit is contained in:
@@ -185,6 +185,10 @@ impl TypeContext {
|
||||
for (sym, ty) in &self.symbol_table.values {
|
||||
write!(output, "{} -> {:?}\n", sym, ty).unwrap();
|
||||
}
|
||||
write!(output, "\nBindings\n").unwrap();
|
||||
for (sym, ty) in &self.bindings {
|
||||
write!(output, "{} : {:?}\n", sym, ty).unwrap();
|
||||
}
|
||||
output
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user