mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Error reporting for type mismatches involving opaques
This commit is contained in:
parent
822e38d026
commit
059c324268
20 changed files with 526 additions and 149 deletions
|
@ -956,9 +956,9 @@ pub fn constrain_expr(
|
|||
// variables of the opaque type
|
||||
// TODO: better expectation here
|
||||
let link_type_variables_con = Eq(
|
||||
(**specialized_def_type).clone(),
|
||||
Expected::NoExpectation(arg_type),
|
||||
Category::OpaqueWrap(*name),
|
||||
arg_type,
|
||||
Expected::NoExpectation((**specialized_def_type).clone()),
|
||||
Category::OpaqueArg,
|
||||
arg_loc_expr.region,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue