mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Show the right fct name in type error messages
This commit is contained in:
parent
7b1f2d2ac1
commit
c858031f74
6 changed files with 125 additions and 13 deletions
|
@ -502,6 +502,7 @@ pub fn constrain_expr(
|
|||
let reason = Reason::FnArg {
|
||||
name: opt_symbol,
|
||||
arg_index: HumanIndex::zero_based(index),
|
||||
called_via: *called_via,
|
||||
};
|
||||
let expected_arg =
|
||||
constraints.push_expected_type(ForReason(reason, arg_type_index, region));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue