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