Add binary operators for bool and nil during binding

This commit is contained in:
Deukhoofd 2018-12-09 20:05:47 +01:00
parent 1e1fa06d12
commit 796f82e823
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ namespace Upsilon.Binder
new BoundBinaryOperator(OperatorKind.Inequality, Type.UserData, Type.Nil, Type.Boolean),
new BoundBinaryOperator(OperatorKind.Equality, Type.Table, Type.Nil, Type.Boolean),
new BoundBinaryOperator(OperatorKind.Inequality, Type.Table, Type.Nil, Type.Boolean),
new BoundBinaryOperator(OperatorKind.Equality, Type.Boolean, Type.Nil, Type.Boolean),
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),
};