solidity/test/libsolidity/syntaxTests/double_variable_declaration.sol

9 lines
147 B
Solidity

contract test {
function f() pure public {
uint256 x;
if (true) { uint256 x; }
}
}
// ----
// DeclarationError: Identifier already declared.