Fixed internal function not binding variables properly

This commit is contained in:
Deukhoofd 2018-12-12 22:23:01 +01:00
parent 4b93302c86
commit 599c535ddd
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ namespace Upsilon.Binder.VariableSymbols
public override (bool IsValid, string Error,
BoundExpression WrongParameter) ValidateParameters(ImmutableArray<BoundExpression> callingParameters)
{
if (FunctionParameters.Length < MinimalParametersRequired
if (callingParameters.Length < MinimalParametersRequired
|| callingParameters.Length > FunctionParameters.Length)
{
return (false,