Skip to content

Commit ce55c8e

Browse files
Timur KelmanTimur Kelman
authored andcommitted
unmark a parameter as processed by ConvertArg in case named parameters will be used
1 parent 798974f commit ce55c8e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CodeConverter/CSharp/ExpressionNodeVisitor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,7 @@ async Task<ArgumentSyntax> ConvertArg(VBSyntax.ArgumentSyntax arg, int argIndex)
17391739
if (arg.IsOmitted) {
17401740
if (invocationSymbol != null && !invocationHasOverloads) {
17411741
forceNamedParameters = true;
1742+
processedParameters.Remove(parameterSymbol?.Name);
17421743
return null; //Prefer to skip omitted and use named parameters when the symbol has only one overload
17431744
}
17441745

0 commit comments

Comments
 (0)