Fix let variable typing rules

This commit is contained in:
Nick Fitzgerald
2021-09-28 12:03:11 -07:00
committed by Chris Fallin
parent 972dc00a92
commit 922a3886d5
2 changed files with 22 additions and 1 deletions

View File

@@ -1251,7 +1251,7 @@ impl TermEnv {
};
// Evaluate the variable's value.
let val = Box::new(match self.translate_expr(tyenv, &def.val, ty, bindings) {
let val = Box::new(match self.translate_expr(tyenv, &def.val, tid, bindings) {
Some(e) => e,
None => {
// Keep going for more errors.