solidity/test/libsolidity/syntaxTests/scoping/double_variable_declaration_same_scope.sol

9 lines
154 B
Solidity

contract test {
function f() pure public {
uint x;
uint x;
}
}
// ----
// DeclarationError: (71-77): Identifier already declared.