Fix type checker for let expressions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
793468072b
commit
4a28a64685
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ public:
|
|||
expr lt = infer_type(let_value(e), ctx);
|
||||
{
|
||||
cache::mk_scope sc(m_cache);
|
||||
r = infer_type(let_body(e), extend(ctx, let_name(e), lt, let_value(e)));
|
||||
r = lower_free_vars(infer_type(let_body(e), extend(ctx, let_name(e), lt, let_value(e))), 1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue