Fix unknown parameters in userdata functions not allowing types

This commit is contained in:
Deukhoofd committed 2019-01-21 16:22:22 +01:00
1 parent 224db6f237
commit a9f6b682dc
1 file changed
+2 -1
@@ -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))