fix(kernel/printer): bug when printing let expression
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
e55fb4f165
commit
ca6a6d71e5
1 changed files with 4 additions and 2 deletions
|
@ -136,8 +136,10 @@ struct print_expr_fn {
|
|||
break;
|
||||
case expr_kind::Let:
|
||||
out() << "let " << let_name(a);
|
||||
if (let_type(a))
|
||||
out() << " : " << let_type(a);
|
||||
if (let_type(a)) {
|
||||
out() << " : ";
|
||||
print(let_type(a), c);
|
||||
}
|
||||
out() << " := ";
|
||||
print(let_value(a), c);
|
||||
out() << " in ";
|
||||
|
|
Loading…
Reference in a new issue