aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol
blob: 5646c43b2c2f16f96e20ec2c06e0354ba2020ccb (plain) (blame)
1
2
3
4
5
6
7
8
contract test {
    function f(uint x) pure public {
        uint y = +x;
        y;
    }
}
// ----
// SyntaxError: (70-72): Use of unary + is disallowed.