mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Fix unifying pure with flex vars
This commit is contained in:
parent
6533e9084d
commit
89a918cebe
12 changed files with 230 additions and 154 deletions
|
@ -1149,9 +1149,8 @@ fn unify_erased_lambda<M: MetaCollector>(
|
|||
#[must_use]
|
||||
fn unify_pure<M: MetaCollector>(env: &mut Env, ctx: &Context, other: &Content) -> Outcome<M> {
|
||||
match other {
|
||||
Pure => merge(env, ctx, Pure),
|
||||
Pure | FlexVar(_) => merge(env, ctx, Pure),
|
||||
Effectful => merge(env, ctx, Effectful),
|
||||
FlexVar(_) => merge(env, ctx, *other),
|
||||
RigidVar(_)
|
||||
| FlexAbleVar(_, _)
|
||||
| RigidAbleVar(_, _)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue