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

17 lines
485 B
Solidity

contract test {
function f() pure public {
uint x;
uint x;
uint x;
uint x;
uint x;
uint x;
}
}
// ----
// DeclarationError 2333: (71-77): Identifier already declared.
// DeclarationError 2333: (87-93): Identifier already declared.
// DeclarationError 2333: (103-109): Identifier already declared.
// DeclarationError 2333: (119-125): Identifier already declared.
// DeclarationError 2333: (135-141): Identifier already declared.