Fix unknown parameters in userdata functions not allowing types

This commit is contained in:
Deukhoofd 2019-01-21 16:22:22 +01:00
parent 224db6f237
commit a9f6b682dc
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 2 additions and 1 deletions

View File

@ -201,7 +201,8 @@ namespace Upsilon.BoundTypes
{
var functionParameter = Parameters[i];
var callingParameter = callingParameters[i];
if (callingParameter.Type == Type.Unknown || callingParameter.Type == Type.Nil)
if (callingParameter.Type == Type.Unknown || callingParameter.Type == Type.Nil ||
functionParameter.Type == Type.Unknown)
continue;
if (!functionParameter.Type.Type.HasFlag(callingParameter.Type))