mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Operators SHL, SAR, Exp and Not can be bound as a user type operators
This commit is contained in:
@@ -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_))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user