collect and instantiate hidden variables

This commit is contained in:
Folkert 2020-10-25 19:11:03 +01:00
parent 2c55fa5ec5
commit f13c28fe7f
5 changed files with 59 additions and 19 deletions

View file

@ -984,6 +984,10 @@ pub enum PatternCategory {
pub struct Alias {
pub region: Region,
pub vars: Vec<Located<(Lowercase, Variable)>>,
/// hidden type variables, like the closure variable in `a -> b`
pub hidden_variables: MutSet<Variable>,
pub uniqueness: Option<boolean_algebra::Bool>,
pub typ: Type,
}