mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Treat rigids as flex vars when checking number range types
This commit is contained in:
parent
6d72971d6b
commit
680bf8e0b7
6 changed files with 75 additions and 55 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue