Skip to content

Commit 9222743

Browse files
fix optional arguments being required
1 parent 9e5d7d0 commit 9222743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ContextSystem/Contexts/MethodContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public override TryAddTokenRes TryAddToken(BaseToken token)
3434

3535
public override Result VerifyCurrentState()
3636
{
37-
return Result.Assert(_providedArguments >= Method.ExpectedArguments.Count(arg => arg.DefaultValue is not null),
37+
return Result.Assert(_providedArguments >= Method.ExpectedArguments.Count(arg => arg.DefaultValue is null),
3838
$"Method '{Method.Name}' is missing required arguments: " +
3939
$"{", ".Join(Method.ExpectedArguments.Skip(_providedArguments).Select(arg => arg.Name))}");
4040
}

0 commit comments

Comments
 (0)