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

7 lines
188 B
Solidity

contract test {
uint256 variable;
function f() pure public { uint32 variable; variable = 2; }
}
// ----
// Warning 2519: (69-84): This declaration shadows an existing declaration.