Refactor evaluation to not be handled in a single large class
This commit is contained in:
@@ -242,11 +242,11 @@ namespace Upsilon.BoundTypes
|
||||
{
|
||||
var functionParameter = Parameters[i];
|
||||
var callingParameter = callingParameters[i];
|
||||
if (callingParameter.Type == Type.Unknown || callingParameter.Type == Type.Nil ||
|
||||
if (callingParameter.ValueType == Type.Unknown || callingParameter.ValueType == Type.Nil ||
|
||||
functionParameter.Type == Type.Unknown)
|
||||
continue;
|
||||
|
||||
if (!functionParameter.Type.Type.HasFlag(callingParameter.Type))
|
||||
if (!functionParameter.Type.Type.HasFlag(callingParameter.ValueType))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user