Refactor evaluation to not be handled in a single large class

This commit is contained in:
2019-02-13 16:29:58 +01:00
parent 4790cc74d2
commit 237f2fefd9
35 changed files with 791 additions and 809 deletions

View File

@@ -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;
}