mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
296 B
Plaintext
20 lines
296 B
Plaintext
{
|
|
function f() -> a, b {}
|
|
let x, y
|
|
x := 1
|
|
x := 2
|
|
// Will not be used, but is a multi-assign, so not removed.
|
|
x, y := f()
|
|
x := 3
|
|
y := 4
|
|
}
|
|
// ----
|
|
// step: unusedAssignEliminator
|
|
//
|
|
// {
|
|
// function f() -> a, b
|
|
// { }
|
|
// let x, y
|
|
// x, y := f()
|
|
// }
|