mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
fix problem with specializing rigids
This commit is contained in:
parent
6aaba98d31
commit
f07fe1879b
5 changed files with 28 additions and 9 deletions
|
@ -681,7 +681,7 @@ fn unify_shared_tags(
|
|||
|
||||
merge(subs, ctx, Structure(flat_type))
|
||||
} else {
|
||||
mismatch!()
|
||||
mismatch!("Problem with Tag Union")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -911,7 +911,7 @@ fn unify_rigid(subs: &mut Subs, ctx: &Context, name: &Lowercase, other: &Content
|
|||
RigidVar(_) | Structure(_) | Alias(_, _, _) => {
|
||||
// Type mismatch! Rigid can only unify with flex, even if the
|
||||
// rigid names are the same.
|
||||
mismatch!()
|
||||
mismatch!("Rigid with {:?}", &other)
|
||||
}
|
||||
Error => {
|
||||
// Error propagates.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue