Merge branch 'main' into allow-try-in-statements

This commit is contained in:
Sam Mohr 2024-12-01 23:02:41 -05:00 committed by GitHub
commit 0a82f313c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
358 changed files with 8376 additions and 1214 deletions

View file

@ -1438,14 +1438,16 @@ pub fn constrain_expr(
return_value.region,
));
constrain_expr(
let return_con = constrain_expr(
types,
constraints,
env,
return_value.region,
&return_value.value,
expected_return_value,
)
);
constraints.exists([*return_var], return_con)
}
Tag {
tag_union_var: variant_var,