aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/conditional_with_constants.sol
blob: 35da69c65c6fccc4872cb428b7918a8eb81d861d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
contract A {
    function f() {
        uint x = 3 > 0 ? 3 : 0;
        uint y = (3 > 0) ? 3 : 0;
    }
}
// ----
// Warning: (17-103): No visibility specified. Defaulting to "public". 
// Warning: (40-46): Unused local variable.
// Warning: (72-78): Unused local variable.
// Warning: (17-103): Function state mutability can be restricted to pure