Operators SHL, SAR, Exp and Not can be bound as a user type operators

This commit is contained in:
wechman
2022-09-28 13:08:32 +02:00
parent 27249cfa52
commit 59c8ec0e65
4 changed files with 32 additions and 18 deletions
+1 -2
View File
@@ -981,12 +981,11 @@ ASTPointer<UsingForDirective> Parser::parseUsingDirective()
advance();
Token operator_ = m_scanner->currentToken();
vector<Token> static const overridableOperators = {
// Potential future additions: <<, >>, **, !
Token::BitOr, Token::BitAnd, Token::BitXor,
Token::Add, Token::Sub, Token::Mul, Token::Div, Token::Mod,
Token::Equal, Token::NotEqual,
Token::LessThan, Token::GreaterThan, Token::LessThanOrEqual, Token::GreaterThanOrEqual,
Token::BitNot
Token::BitNot, Token::SHL, Token::SAR, Token::Exp, Token::Not
};
if (!util::contains(overridableOperators, operator_))
{