mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-04 00:54:36 +00:00
Merge remote-tracking branch 'origin/trunk' into recursive-layouts
This commit is contained in:
commit
f857203673
64 changed files with 5025 additions and 2214 deletions
|
@ -507,7 +507,7 @@ pub fn constrain_expr(
|
|||
]),
|
||||
)
|
||||
}
|
||||
BlockStr(_) | Str(_) => {
|
||||
Str(_) => {
|
||||
let uniq_type = var_store.fresh();
|
||||
let inferred = str_type(Bool::variable(uniq_type));
|
||||
|
||||
|
@ -624,13 +624,19 @@ pub fn constrain_expr(
|
|||
let union_con = Eq(
|
||||
union_type,
|
||||
expected.clone(),
|
||||
Category::TagApply(name.clone()),
|
||||
Category::TagApply {
|
||||
tag_name: name.clone(),
|
||||
args_count: arguments.len(),
|
||||
},
|
||||
region,
|
||||
);
|
||||
let ast_con = Eq(
|
||||
Type::Variable(*variant_var),
|
||||
expected,
|
||||
Category::TagApply(name.clone()),
|
||||
Category::TagApply {
|
||||
tag_name: name.clone(),
|
||||
args_count: arguments.len(),
|
||||
},
|
||||
region,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue