Print bool correctly in repl

Closes #4149
This commit is contained in:
Ayaz Hafiz 2022-10-03 14:32:15 -05:00
parent b7e9b07acb
commit dfd0fdc990
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 40 additions and 0 deletions

View file

@ -1153,6 +1153,10 @@ fn bool_to_ast<'a, M: ReplAppMemory>(
}
}
}
Alias(Symbol::BOOL_BOOL, _, _, _) => Expr::Var {
module_name: "Bool",
ident: if value { "true" } else { "false" },
},
Alias(_, _, var, _) => {
let content = env.subs.get_content_without_compacting(*var);