Fix let variable typing rules
This commit is contained in:
committed by
Chris Fallin
parent
972dc00a92
commit
922a3886d5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user