mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Use variable instead of type
This commit is contained in:
parent
d416b8b184
commit
721c4cb1e6
1 changed files with 1 additions and 3 deletions
|
@ -435,9 +435,7 @@ pub fn constrain_pattern(
|
|||
} in destructs
|
||||
{
|
||||
let pat_type = Type::Variable(*var);
|
||||
let pat_type_index =
|
||||
// TODO(types-soa) use variable here instead
|
||||
{ let typ = types.from_old_type(&pat_type.clone()); constraints.push_type(types, typ) };
|
||||
let pat_type_index = constraints.push_variable(*var);
|
||||
let expected =
|
||||
constraints.push_pat_expected_type(PExpected::NoExpectation(pat_type_index));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue