mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Allow extending Openness constraints when doing specializations
This commit is contained in:
parent
1d75934659
commit
20d0d62af7
1 changed files with 3 additions and 1 deletions
|
@ -2437,7 +2437,9 @@ fn unify_tag_ext<M: MetaCollector>(
|
|||
)
|
||||
}
|
||||
TagExt::Any(_) => true,
|
||||
};
|
||||
}
|
||||
// Tag unions are always extendable during specialization
|
||||
|| M::IS_LATE;
|
||||
if legal_unification {
|
||||
if flip_for_unify {
|
||||
unify_pool(env, pool, var, ext.var(), mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue