mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
C99 scoping rules by default
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
pragma experimental "v0.5.0";
|
||||
contract test {
|
||||
function f() pure public {
|
||||
for (uint x = 0; x < 10; x ++){
|
||||
@@ -8,4 +7,4 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (154-155): Undeclared identifier.
|
||||
// DeclarationError: (124-125): Undeclared identifier.
|
||||
|
||||
Reference in New Issue
Block a user