fix mutual recursive types

I'll write a bit more about this in the PR message
This commit is contained in:
Folkert 2020-06-26 01:02:55 +02:00
parent 055b01c463
commit e5997c4047
12 changed files with 263 additions and 53 deletions

View file

@ -146,6 +146,14 @@ impl Scope {
vars: Vec<Located<(Lowercase, Variable)>>,
typ: Type,
) {
self.aliases.insert(name, Alias { region, vars, typ });
self.aliases.insert(
name,
Alias {
region,
vars,
uniqueness: None,
typ,
},
);
}
}