Remove unary plus.

This commit is contained in:
chriseth 2020-12-03 15:03:06 +01:00 committed by Leonardo Alt
parent 89919e47d3
commit 4be9b409de
2 changed files with 1 additions and 2 deletions

View File

@ -220,8 +220,6 @@ optional<rational> ConstantEvaluator::evaluateUnaryOperator(Token _operator, rat
return nullopt;
else
return ~_input.numerator();
case Token::Add:
return +_input;
case Token::Sub:
return -_input;
default:

View File

@ -7,3 +7,4 @@ contract test {
}
// ----
// SyntaxError 9636: (70-75): Use of unary + is disallowed.
// TypeError 4907: (70-75): Unary operator + cannot be applied to type rational_const 13 / 4