mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Removing scope rules for pre block in 'For Loops'
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
{
|
||||
for { let a := 10 } iszero(eq(a, 0)) { a := add(a, 1) } {}
|
||||
let a := 10
|
||||
for { } iszero(eq(a, 0)) { a := add(a, 1) } {}
|
||||
}
|
||||
// ====
|
||||
// step: expressionSimplifier
|
||||
// ----
|
||||
// {
|
||||
// let a := 10
|
||||
// for {
|
||||
// let a := 10
|
||||
// }
|
||||
// iszero(iszero(a))
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user