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:
Chelsea Troy 2021-12-01 00:13:15 -06:00
parent 6cf755ad8d
commit 0e5f82526a
3 changed files with 9 additions and 19 deletions

View file

@ -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(),