Fix unknown parameters in userdata functions not allowing types

This commit is contained in:
2019-01-21 16:22:22 +01:00
parent 224db6f237
commit a9f6b682dc

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