mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
is_open_type expects type index
This commit is contained in:
parent
0f0c02965a
commit
556222caa1
2 changed files with 10 additions and 8 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue