Make sure ability defs that are possibly recursive are marked as such

This commit is contained in:
Ayaz Hafiz 2022-07-25 10:52:55 -04:00
parent 0525c6d616
commit 75ce40c67d
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 18 additions and 2 deletions

View file

@ -205,6 +205,7 @@ pub fn canonicalize_def_header_pattern<'a>(
}
// Likely a specialization of an ability.
Some(ability_member_name) => {
output.references.insert_bound(symbol);
output.references.insert_value_lookup(ability_member_name);
Pattern::AbilityMemberSpecialization {
ident: symbol,