Add Userdata equality operators

This commit is contained in:
Deukhoofd 2019-01-14 14:44:31 +01:00
parent 0a8648ce80
commit 0a034013ea
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ namespace Upsilon.Binder
new BoundBinaryOperator(OperatorKind.Inequality, Type.Boolean, Type.Nil, Type.Boolean),
new BoundBinaryOperator(OperatorKind.Equality, Type.Unknown, Type.Nil, Type.Boolean),
new BoundBinaryOperator(OperatorKind.Inequality, Type.Unknown, Type.Nil, Type.Boolean),
// Userdata equality
new BoundBinaryOperator(OperatorKind.Equality, Type.UserData, Type.UserData, Type.Boolean),
new BoundBinaryOperator(OperatorKind.Inequality, Type.UserData, Type.UserData, Type.Boolean),
};
public static BoundBinaryOperator Bind(SyntaxKind operatorToken, Type left, Type right)