Show bindings too in debug

This commit is contained in:
greg 2018-05-15 23:03:50 -07:00
parent e7c89ed840
commit b4c7ea3d02

View File

@ -185,6 +185,10 @@ impl TypeContext {
for (sym, ty) in &self.symbol_table.values { for (sym, ty) in &self.symbol_table.values {
write!(output, "{} -> {:?}\n", sym, ty).unwrap(); write!(output, "{} -> {:?}\n", sym, ty).unwrap();
} }
write!(output, "\nBindings\n").unwrap();
for (sym, ty) in &self.bindings {
write!(output, "{} : {:?}\n", sym, ty).unwrap();
}
output output
} }