aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol
blob: f2542d9070d53f9ee79512c8bfc611fbde71ad96 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract test {
    function f(uint x) pure public {
        uint y = +x;
        y;
    }
}
// ----
// SyntaxError: (70-72): Use of unary + is disallowed.
// TypeError: (70-72): Unary operator + cannot be applied to type uint256