mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Store expects type index
This commit is contained in:
parent
278754506f
commit
bff3d534f6
2 changed files with 34 additions and 19 deletions
|
@ -600,12 +600,11 @@ impl Constraints {
|
|||
|
||||
pub fn store(
|
||||
&mut self,
|
||||
typ: Type,
|
||||
type_index: TypeOrVar,
|
||||
variable: Variable,
|
||||
filename: &'static str,
|
||||
line_number: u32,
|
||||
) -> Constraint {
|
||||
let type_index = self.push_type(typ);
|
||||
let string_index = Index::push_new(&mut self.strings, filename);
|
||||
|
||||
Constraint::Store(type_index, variable, string_index, line_number)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue