Able variables through different functions compile

This commit is contained in:
Ayaz Hafiz 2022-04-19 13:09:40 -04:00
parent a07323fb40
commit b9f79fdd31
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 27 additions and 0 deletions

View file

@ -478,6 +478,10 @@ pub fn canonicalize_defs<'a>(
}
};
if pattern_type == PatternType::TopLevelDef {
env.top_level_symbols.insert(member_sym);
}
// What variables in the annotation are bound to the parent ability, and what variables
// are bound to some other ability?
let (variables_bound_to_ability, variables_bound_to_other_abilities): (Vec<_>, Vec<_>) =