Disallow abilities on toplevel of scope

This commit is contained in:
Ayaz Hafiz 2022-05-09 09:45:02 -04:00
parent 9515f60479
commit b0734c3d80
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 63 additions and 1 deletions

View file

@ -139,6 +139,7 @@ pub enum Problem {
region: Region,
},
AbilityUsedAsType(Lowercase, Symbol, Region),
NestedSpecialization(Symbol, Region),
}
#[derive(Clone, Debug, PartialEq)]