mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +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
|
||||
{
|
||||
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…
Reference in New Issue
Block a user