diff --git a/Upsilon/StandardLibraries/StaticScope.cs b/Upsilon/StandardLibraries/StaticScope.cs index 7dd2d23..961eda2 100644 --- a/Upsilon/StandardLibraries/StaticScope.cs +++ b/Upsilon/StandardLibraries/StaticScope.cs @@ -144,7 +144,7 @@ namespace Upsilon.StandardLibraries } var result = genericParameters[genericParameters.Length - 1].GetScriptType(); - return new InternalFunctionVariableSymbol(name, true, Type.Nil, parameters.ToArray(), null, false); + return new InternalFunctionVariableSymbol(name, true, result, parameters.ToArray(), null, false); } private static VariableSymbol BuildActionVariableSymbol(string name, System.Type type)