From b7bcc8ac280ea7058be78d19d03344b712337b21 Mon Sep 17 00:00:00 2001 From: Andrei Horodniceanu Date: Sun, 6 Jul 2025 17:24:17 +0300 Subject: [PATCH] dscanner/analysis/mismatched_args.d: Replace deprecated DSymbol.argNames Replace deprecated member with functionParametes.map!`a.name` Signed-off-by: Andrei Horodniceanu --- src/dscanner/analysis/mismatched_args.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dscanner/analysis/mismatched_args.d b/src/dscanner/analysis/mismatched_args.d index db75eb4..a1f88df 100644 --- a/src/dscanner/analysis/mismatched_args.d +++ b/src/dscanner/analysis/mismatched_args.d @@ -53,7 +53,7 @@ final class MismatchedArgumentCheck : BaseAnalyzer { // The cast is a hack because .array() confuses the compiler's overload // resolution code. - const(istring)[] params = sym is null ? [] : sym.argNames[].map!(a => cast() a).array(); + const(istring)[] params = sym is null ? [] : sym.functionParameters.map!(a => a.name).array(); const ArgMismatch[] mismatches = compareArgsToParams(params, args); if (mismatches.length == 0) matched = true;