Insert first ability correctly in the parser

This commit is contained in:
Ayaz Hafiz 2022-10-12 10:39:00 -05:00
parent 6bb97c92b9
commit 231a72f2ee
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 29 additions and 29 deletions

View file

@ -438,7 +438,7 @@ fn ability_chain<'a>(
Loc<TypeAnnotation<'a>>,
Vec<'a, Loc<TypeAnnotation<'a>>>
)| {
other_abilities.push(first_ability);
other_abilities.insert(0, first_ability);
other_abilities
}
)