solidity/test/libsolidity/syntaxTests/double_variable_declaration.sol

10 lines
184 B
Solidity
Raw Normal View History

contract test {
function f() pure public {
uint256 x;
2018-06-15 10:30:28 +00:00
x = 1;
if (true) { uint256 x; x = 2; }
}
}
// ----
2018-06-15 10:30:28 +00:00
// Warning: (80-89): This declaration shadows an existing declaration.