Treat rigids as flex vars when checking number range types

This commit is contained in:
ayazhafiz 2022-02-06 13:42:28 -05:00
parent 6d72971d6b
commit 680bf8e0b7
6 changed files with 75 additions and 55 deletions

View file

@ -2292,7 +2292,7 @@ fn specialize_external<'a>(
env.subs,
partial_proc.annotation,
fn_var,
roc_unify::unify::Mode::Eq,
roc_unify::unify::Mode::EQ,
);
// This will not hold for programs with type errors
@ -4281,7 +4281,7 @@ pub fn with_hole<'a>(
env.subs,
fn_var,
lambda_expr_var,
roc_unify::unify::Mode::Eq,
roc_unify::unify::Mode::EQ,
);
result = with_hole(
@ -6691,7 +6691,7 @@ fn reuse_function_symbol<'a>(
env.subs,
arg_var.unwrap(),
expr_var,
roc_unify::unify::Mode::Eq,
roc_unify::unify::Mode::EQ,
);
let result = with_hole(