Add fx to ErrorType

This commit is contained in:
Agus Zubiaga 2024-10-17 22:59:44 -03:00
parent 8a65617704
commit 6533e9084d
No known key found for this signature in database
6 changed files with 66 additions and 30 deletions

View file

@ -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