Fix internal function variables not binding properly when allowing all objects

This commit is contained in:
Deukhoofd 2019-01-23 11:54:35 +01:00
parent aa2539ad20
commit 29818dad31
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,8 @@ namespace Upsilon.Binder.VariableSymbols
{ {
continue; continue;
} }
if (functionParameter.ValidTypes == Type.Unknown)
continue;
if (!functionParameter.ValidTypes.Type.HasFlag(callingParameter.Type)) if (!functionParameter.ValidTypes.Type.HasFlag(callingParameter.Type))
{ {