mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Fix variants getting mixed up with bools
This commit is contained in:
parent
c2cec85202
commit
826b0d5ab0
5 changed files with 111 additions and 33 deletions
|
@ -11,7 +11,6 @@ pub enum Expr {
|
|||
Str(String),
|
||||
InterpolatedStr(Vec<(String, Ident)>, String),
|
||||
Char(char),
|
||||
Bool(bool),
|
||||
|
||||
Var(Ident),
|
||||
Let(Pattern, Box<Expr>, Box<Expr>),
|
||||
|
@ -62,8 +61,6 @@ impl fmt::Display for Expr {
|
|||
write!(f, "\"{}\"", escaped_str)
|
||||
},
|
||||
Char(ch) => write!(f, "'{}'", *ch),
|
||||
Bool(true) => write!(f, "True"),
|
||||
Bool(false) => write!(f, "False"),
|
||||
Closure(args, _) => write!(f, "<{}-argument function>", args.len()),
|
||||
ApplyVariant(name, opt_exprs) => {
|
||||
match opt_exprs {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue