aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/double_variable_declaration_050.sol
blob: 2f47e6dc90bb4cfa7a847f56c125d624184c84d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
pragma experimental "v0.5.0";
contract test {
    function f() pure public {
        uint256 x;
        if (true) { uint256 x; }
    }
}
// ----
// Warning: (101-110): This declaration shadows an existing declaration.
// Warning: (76-85): Unused local variable.
// Warning: (101-110): Unused local variable.