mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Include floats in bounds for unspecified numbers
This commit is contained in:
parent
3fffca48bb
commit
c5d918e68c
8 changed files with 129 additions and 180 deletions
|
@ -216,8 +216,8 @@ pub fn canonicalize_pattern<'a>(
|
|||
let problem = MalformedPatternProblem::MalformedInt;
|
||||
malformed_pattern(env, problem, region)
|
||||
}
|
||||
Ok(ParsedNumResult::UnknownNum(int)) => {
|
||||
Pattern::NumLiteral(var_store.fresh(), (str).into(), int, NumericBound::None)
|
||||
Ok(ParsedNumResult::UnknownNum(int, bound)) => {
|
||||
Pattern::NumLiteral(var_store.fresh(), (str).into(), int, bound)
|
||||
}
|
||||
Ok(ParsedNumResult::Int(int, bound)) => Pattern::IntLiteral(
|
||||
var_store.fresh(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue