mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
225 B
Plaintext
14 lines
225 B
Plaintext
|
{
|
||
|
// This tests that a bug is fixed where x := 1 was wrongfully
|
||
|
// taken into account before actually visiting the if statement.
|
||
|
let x := 0
|
||
|
if x {
|
||
|
x := 1
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// structuralSimplifier
|
||
|
// {
|
||
|
// let x := 0
|
||
|
// }
|