Unify FunctionOrTagUnion with regular tags and functions

This commit is contained in:
tarjei 2021-05-23 23:14:17 +02:00
parent a53c7b5546
commit 0ee15f15ee
4 changed files with 197 additions and 11 deletions

View file

@ -634,11 +634,14 @@ pub fn canonicalize_expr<'a>(
let variant_var = var_store.fresh();
let ext_var = var_store.fresh();
let symbol = env.gen_unique_symbol();
(
Tag {
ZeroArgumentTag {
name: TagName::Global((*tag).into()),
arguments: vec![],
variant_var,
closure_name: symbol,
ext_var,
},
Output::default(),