mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
test for record diff
This commit is contained in:
parent
fc8d9c2fd9
commit
2d6e47b8a6
5 changed files with 72 additions and 17 deletions
|
@ -741,8 +741,8 @@ pub fn constrain_expr(
|
|||
fn_expected,
|
||||
);
|
||||
|
||||
// TODO look up the name and use NamedFnArg if possible.
|
||||
let fn_reason = Reason::AnonymousFnCall {
|
||||
let fn_reason = Reason::FnCall {
|
||||
name: opt_symbol,
|
||||
arity: loc_args.len() as u8,
|
||||
};
|
||||
|
||||
|
@ -753,7 +753,8 @@ pub fn constrain_expr(
|
|||
let region = loc_arg.region;
|
||||
let arg_type = Variable(*arg_var);
|
||||
|
||||
let reason = Reason::AnonymousFnArg {
|
||||
let reason = Reason::FnArg {
|
||||
name: opt_symbol,
|
||||
arg_index: index as u8,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue