Include floats in bounds for unspecified numbers

This commit is contained in:
ayazhafiz 2022-02-06 12:31:37 -05:00
parent 3fffca48bb
commit c5d918e68c
8 changed files with 129 additions and 180 deletions

View file

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