Add AbilityMember can variant for resolving ability specializations

This commit is contained in:
Ayaz Hafiz 2022-05-05 13:52:26 -04:00 committed by ayazhafiz
parent ebbcd57022
commit edee222763
4 changed files with 18 additions and 1 deletions

View file

@ -336,6 +336,11 @@ pub fn constrain_expr(
// make lookup constraint to lookup this symbol's type in the environment
constraints.lookup(*symbol, expected, region)
}
AbilityMember(symbol, _specialization) => {
// make lookup constraint to lookup this symbol's type in the environment
constraints.lookup(*symbol, expected, region)
// TODO: consider trying to solve `_specialization` here.
}
Closure(ClosureData {
function_type: fn_var,
closure_type: closure_var,