mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 16:51:53 +03:00
Use variable instead of type
This commit is contained in:
parent
d416b8b184
commit
721c4cb1e6
@ -435,9 +435,7 @@ pub fn constrain_pattern(
|
|||||||
} in destructs
|
} in destructs
|
||||||
{
|
{
|
||||||
let pat_type = Type::Variable(*var);
|
let pat_type = Type::Variable(*var);
|
||||||
let pat_type_index =
|
let pat_type_index = constraints.push_variable(*var);
|
||||||
// TODO(types-soa) use variable here instead
|
|
||||||
{ let typ = types.from_old_type(&pat_type.clone()); constraints.push_type(types, typ) };
|
|
||||||
let expected =
|
let expected =
|
||||||
constraints.push_pat_expected_type(PExpected::NoExpectation(pat_type_index));
|
constraints.push_pat_expected_type(PExpected::NoExpectation(pat_type_index));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user