mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Add a notion of "openness" tag extensions suitable only for size-polymorphism
This commit is contained in:
parent
5f5d6a42d1
commit
1c93727822
18 changed files with 302 additions and 233 deletions
|
@ -613,7 +613,7 @@ fn convert_tag(subs: &Subs, whole_var: Variable, this_tag: &TagName) -> (Union,
|
|||
|
||||
// DEVIATION: model openness by attaching a #Open constructor, that can never
|
||||
// be matched unless there's an `Anything` pattern.
|
||||
let opt_openness_tag = match subs.get_content_without_compacting(ext) {
|
||||
let opt_openness_tag = match subs.get_content_without_compacting(ext.var()) {
|
||||
FlexVar(_) | RigidVar(_) => {
|
||||
let openness_tag = TagName(NONEXHAUSIVE_CTOR.into());
|
||||
num_tags += 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue