test for record diff

This commit is contained in:
Folkert 2020-04-06 17:47:40 +02:00
parent fc8d9c2fd9
commit 2d6e47b8a6
5 changed files with 72 additions and 17 deletions

View file

@ -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,
};