mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 09:07:21 +00:00
Use new try impl for ? operator
This commit is contained in:
parent
193c23bac8
commit
de626102c8
20 changed files with 429 additions and 110 deletions
|
@ -917,6 +917,7 @@ fn solve(
|
|||
ok_payload_var,
|
||||
err_payload_var,
|
||||
region,
|
||||
kind,
|
||||
} = try_target_constraint;
|
||||
|
||||
let target_actual = either_type_index_to_var(
|
||||
|
@ -990,7 +991,7 @@ fn solve(
|
|||
Failure(vars, actual_type, _expected_type, _bad_impls) => {
|
||||
env.introduce(rank, &vars);
|
||||
|
||||
let problem = TypeError::InvalidTryTarget(*region, actual_type);
|
||||
let problem = TypeError::InvalidTryTarget(*region, actual_type, *kind);
|
||||
|
||||
problems.push(problem);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue