solidity/test/libsolidity/syntaxTests/double_variable_declaration.sol
2018-04-10 14:08:22 +02:00

9 lines
156 B
Solidity

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