mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Infer ranged number for chars in patterns
This commit is contained in:
parent
811c8554ac
commit
619cd2f629
8 changed files with 48 additions and 17 deletions
|
@ -366,7 +366,7 @@ fn pattern<'a>(
|
|||
f.text(&**n)
|
||||
}
|
||||
StrLiteral(s) => f.text(format!(r#""{}""#, s)),
|
||||
SingleQuote(c) => f.text(format!("'{}'", c)),
|
||||
SingleQuote(_, _, c, _) => f.text(format!("'{}'", c)),
|
||||
Underscore => f.text("_"),
|
||||
|
||||
Shadowed(_, _, _) => todo!(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue