mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-10 02:59:34 +00:00
Drop recursion var instantiation in the wrong spot
This commit is contained in:
parent
677d19d825
commit
40fc920b5e
1 changed files with 0 additions and 16 deletions
|
|
@ -3104,22 +3104,6 @@ fn instantiate_aliases<'a, F>(
|
|||
|
||||
actual.substitute(&substitution);
|
||||
|
||||
// instantiate recursion variable!
|
||||
//if let Type::RecursiveTagUnion(rec_var, mut tags, mut ext) = actual {
|
||||
// let new_rec_var = ctx.var_store.fresh();
|
||||
// substitution.clear();
|
||||
// substitution.insert(rec_var, Type::Variable(new_rec_var));
|
||||
|
||||
// for typ in tags.iter_mut().flat_map(|v| v.1.iter_mut()) {
|
||||
// typ.substitute(&substitution);
|
||||
// }
|
||||
|
||||
// if let TypeExtension::Open(ext, _) = &mut ext {
|
||||
// ext.substitute(&substitution);
|
||||
// }
|
||||
|
||||
// actual = Type::RecursiveTagUnion(new_rec_var, tags, ext);
|
||||
//}
|
||||
let alias = Type::Alias {
|
||||
symbol: *symbol,
|
||||
type_arguments: named_args,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue