aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/311_rational_unary_plus_assignment_v050.sol
blob: 7e5c0feb7324a527b65c60f4fabc831046ed182c (plain) (blame)
1
2
3
4
5
6
7
8
9
pragma experimental "v0.5.0";
contract test {
    function f(uint x) pure public {
        uint y = +x;
        y;
    }
}
// ----
// SyntaxError: (100-102): Use of unary + is deprecated.