This commit is contained in:
Folkert 2022-05-21 20:50:06 +02:00
parent 98ce9f4d09
commit d43bda83b4
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 37 additions and 113 deletions

View file

@ -5,7 +5,7 @@ use roc_debug_flags::{ROC_PRINT_MISMATCHES, ROC_PRINT_UNIFICATIONS};
use roc_error_macros::internal_error;
use roc_module::ident::{Lowercase, TagName};
use roc_module::symbol::Symbol;
use roc_types::num::NumericBound;
use roc_types::num::NumericRange;
use roc_types::subs::Content::{self, *};
use roc_types::subs::{
AliasVariables, Descriptor, ErrorTypeContext, FlatType, GetSubsSlice, Mark, OptVariable,
@ -414,7 +414,7 @@ fn unify_ranged_number(
pool: &mut Pool,
ctx: &Context,
real_var: Variable,
range_vars: NumericBound,
range_vars: NumericRange,
) -> Outcome {
let other_content = &ctx.second_desc.content;
@ -448,7 +448,7 @@ fn unify_ranged_number(
check_valid_range(subs, ctx.second, range_vars)
}
fn check_valid_range(subs: &mut Subs, var: Variable, range: NumericBound) -> Outcome {
fn check_valid_range(subs: &mut Subs, var: Variable, range: NumericRange) -> Outcome {
let content = subs.get_content_without_compacting(var);
match content {