mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
eliminate type
This commit is contained in:
parent
689fc10308
commit
b03a1d3efd
1 changed files with 1 additions and 2 deletions
|
@ -667,7 +667,6 @@ pub fn constrain_pattern(
|
||||||
} => {
|
} => {
|
||||||
// Suppose we are constraining the pattern \@Id who, where Id n := [Id U64 n]
|
// Suppose we are constraining the pattern \@Id who, where Id n := [Id U64 n]
|
||||||
let (arg_pattern_var, loc_arg_pattern) = &**argument;
|
let (arg_pattern_var, loc_arg_pattern) = &**argument;
|
||||||
let arg_pattern_type = Type::Variable(*arg_pattern_var);
|
|
||||||
let arg_pattern_type_index = constraints.push_variable(*arg_pattern_var);
|
let arg_pattern_type_index = constraints.push_variable(*arg_pattern_var);
|
||||||
|
|
||||||
let opaque_type = {
|
let opaque_type = {
|
||||||
|
@ -682,7 +681,7 @@ pub fn constrain_pattern(
|
||||||
.collect(),
|
.collect(),
|
||||||
lambda_set_variables: lambda_set_variables.clone(),
|
lambda_set_variables: lambda_set_variables.clone(),
|
||||||
infer_ext_in_output_types: vec![],
|
infer_ext_in_output_types: vec![],
|
||||||
actual: Box::new(arg_pattern_type.clone()),
|
actual: Box::new(Type::Variable(*arg_pattern_var)),
|
||||||
kind: AliasKind::Opaque,
|
kind: AliasKind::Opaque,
|
||||||
});
|
});
|
||||||
constraints.push_type(types, typ)
|
constraints.push_type(types, typ)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue