solidity/test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol

9 lines
156 B
Solidity

contract test {
function f(uint x) pure public {
uint y = +x;
y;
}
}
// ----
// SyntaxError: (70-72): Use of unary + is disallowed.