mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Add fx to ErrorType
This commit is contained in:
parent
8a65617704
commit
6533e9084d
6 changed files with 66 additions and 30 deletions
|
@ -57,8 +57,8 @@ pub fn remove_module_param_arguments(
|
|||
drop_last_argument(expected);
|
||||
|
||||
if let (
|
||||
ErrorType::Function(found_args, _, _),
|
||||
ErrorType::Function(expected_args, _, _),
|
||||
ErrorType::Function(found_args, _, _, _),
|
||||
ErrorType::Function(expected_args, _, _, _),
|
||||
) = (found, expected)
|
||||
{
|
||||
if found_args.len() > expected_args.len() {
|
||||
|
@ -194,7 +194,7 @@ fn remove_for_reason(
|
|||
|
||||
fn drop_last_argument(err_type: &mut ErrorType) {
|
||||
match err_type {
|
||||
ErrorType::Function(arguments, _, _) => {
|
||||
ErrorType::Function(arguments, _, _, _) => {
|
||||
arguments.pop();
|
||||
}
|
||||
// Irrelevant
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue