mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
262 B
Plaintext
20 lines
262 B
Plaintext
|
// Cannot replace `let b := x` by `let b := a` since a is out of scope.
|
||
|
{
|
||
|
let x
|
||
|
{
|
||
|
let a := sload(0)
|
||
|
x := a
|
||
|
}
|
||
|
let b := x
|
||
|
}
|
||
|
// ----
|
||
|
// rematerialiser
|
||
|
// {
|
||
|
// let x
|
||
|
// {
|
||
|
// let a := sload(0)
|
||
|
// x := a
|
||
|
// }
|
||
|
// let b := x
|
||
|
// }
|