aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/double_variable_declaration.sol
blob: 53c5c9be84e965a01ac11af0329b5127a5deeec4 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract test {
    function f() pure public {
        uint256 x;
        x = 1;
        if (true) { uint256 x; x = 2; }
    }
}
// ----
// Warning: (80-89): This declaration shadows an existing declaration.