Fixed bound Func variables having Nil as return type

This commit is contained in:
Deukhoofd 2019-02-16 17:05:05 +01:00
parent 59909b0d53
commit 73a0d64bed
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 1 deletions

View File

@ -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)