This commit is contained in:
nub31
2025-07-03 22:38:44 +02:00
parent 5259ba79ac
commit 761a533e80
3 changed files with 17 additions and 3 deletions

View File

@@ -315,7 +315,7 @@ public static class Binder
{
NubType? type = null;
var definition = _definitionTable.LookupFunc(expression.Namespace.Or(_syntaxTree.Namespace), expression.Name);
var definition = _definitionTable.LookupFunction(expression.Namespace.Or(_syntaxTree.Namespace), expression.Name);
if (definition.HasValue)
{
type = new NubFuncType(definition.Value.ReturnType, definition.Value.Parameters.Select(p => p.Type).ToList());