We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 164995f commit 3e9116eCopy full SHA for 3e9116e
src/Application/HydraScript.Application.StaticAnalysis/Exceptions/WrongNumberOfArguments.cs
src/Application/HydraScript.Application.StaticAnalysis/Visitors/SemanticChecker.cs
@@ -427,12 +427,6 @@ public Type Visit(CallExpression visitable)
427
visitable.IsEmptyCall = functionSymbol.IsEmpty;
428
var functionReturnType = functionSymbol.Type;
429
430
- if (functionSymbol.Parameters.Count != visitable.Parameters.Count + (methodCall ? 1 : 0))
431
- throw new WrongNumberOfArguments(
432
- visitable.Segment,
433
- expected: functionSymbol.Parameters.Count,
434
- actual: visitable.Parameters.Count);
435
-
436
visitable.Parameters.Zip(parameters).Zip(functionSymbol.Parameters.ToArray()[(methodCall ? 1 : 0)..])
437
.ToList().ForEach(pair =>
438
{
0 commit comments