solidity/test/libsolidity/syntaxTests/double_variable_declaration.sol

9 lines
156 B
Solidity
Raw Normal View History

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