mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Account for SingleQuote in the case statements for the cli, plus some errata
+ Evidently I failed to finish fixing merge conflicts + Some of the types that the SingleQuote code mentioned didn't exist according to the build step. I looked around and switched them out for types it LOOKED like they were supposed to be, but someone should probably check this + Don't make commits like this; it's multiple unrelated changes thrown together. I'm still figuring out my way around here
This commit is contained in:
parent
6cf755ad8d
commit
0e5f82526a
3 changed files with 9 additions and 19 deletions
|
@ -3039,7 +3039,7 @@ pub fn with_hole<'a>(
|
|||
SingleQuote(character) => Stmt::Let(
|
||||
assigned,
|
||||
Expr::Literal(Literal::Int(character as _)),
|
||||
Layout::Builtin(Builtin::Int32),
|
||||
Layout::int_width(IntWidth::I32),
|
||||
hole,
|
||||
),
|
||||
|
||||
|
@ -7327,7 +7327,7 @@ fn from_can_pattern_help<'a>(
|
|||
}
|
||||
}
|
||||
StrLiteral(v) => Ok(Pattern::StrLiteral(v.clone())),
|
||||
SingleQuote(c) => Ok(Pattern::IntLiteral(*c as _, IntPrecision::I32)),
|
||||
SingleQuote(c) => Ok(Pattern::IntLiteral(*c as _, IntWidth::I32)),
|
||||
Shadowed(region, ident) => Err(RuntimeError::Shadowing {
|
||||
original_region: *region,
|
||||
shadow: ident.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue