aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/double_variable_declaration.sol
blob: 3349cfece1e06229cd93490289348f5180e57934 (plain) (blame)
1
2
3
4
5
6
7
8
contract test {
    function f() pure public {
        uint256 x;
        if (true) { uint256 x; }
    }
}
// ----
// DeclarationError: Identifier already declared.