Fix unknown parameters in userdata functions not allowing types
This commit is contained in:
parent
224db6f237
commit
a9f6b682dc
|
@ -201,7 +201,8 @@ namespace Upsilon.BoundTypes
|
||||||
{
|
{
|
||||||
var functionParameter = Parameters[i];
|
var functionParameter = Parameters[i];
|
||||||
var callingParameter = callingParameters[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;
|
continue;
|
||||||
|
|
||||||
if (!functionParameter.Type.Type.HasFlag(callingParameter.Type))
|
if (!functionParameter.Type.Type.HasFlag(callingParameter.Type))
|
||||||
|
|
Loading…
Reference in New Issue