mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Use variable instead of type
This commit is contained in:
parent
721c4cb1e6
commit
689fc10308
1 changed files with 1 additions and 5 deletions
|
@ -725,11 +725,7 @@ pub fn constrain_pattern(
|
|||
// This must **always** be a presence constraint, that is enforcing
|
||||
// `[A k1, B k1] += typeof (A s)`, because we are in a destructure position and not
|
||||
// all constructors are covered in this branch!
|
||||
let arg_pattern_type = {
|
||||
// TODO(types-soa) this is just a variable
|
||||
let typ = types.from_old_type(&arg_pattern_type);
|
||||
constraints.push_type(types, typ)
|
||||
};
|
||||
let arg_pattern_type = constraints.push_variable(*arg_pattern_var);
|
||||
let specialized_type_index = {
|
||||
let typ = types.from_old_type(&(**specialized_def_type));
|
||||
constraints.push_type(types, typ)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue