is_open_type expects type index

This commit is contained in:
Ayaz Hafiz 2022-10-24 17:51:39 -05:00
parent 0f0c02965a
commit 556222caa1
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 10 additions and 8 deletions

View file

@ -332,9 +332,7 @@ impl Constraints {
Constraint::PatternPresence(type_index, expected_index, category_index, region)
}
pub fn is_open_type(&mut self, typ: Type) -> Constraint {
let type_index = self.push_type(typ);
pub fn is_open_type(&mut self, type_index: TypeOrVar) -> Constraint {
Constraint::IsOpenType(type_index)
}