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

11 lines
207 B
Solidity
Raw Normal View History

2018-03-15 23:47:12 +00:00
contract test {
function f() pure public {
for (uint x = 0; x < 10; x ++){
x = 2;
}
x = 4;
}
}
// ----
// DeclarationError 7576: (124-125): Undeclared identifier.