solidity/test/libyul/yulSyntaxTests/assignment_duplicate_vars.yul
2022-04-01 23:41:18 -05:00

11 lines
358 B
Plaintext

{
function f() -> a, b {}
function g() -> a, b, c {}
let x, y
x, x := f()
y, x, y := g()
}
// ----
// DeclarationError 9005: (70-81='x, x := f()'): Variable x occurs multiple times on the left-hand side of the assignment.
// DeclarationError 9005: (84-98='y, x, y := g()'): Variable y occurs multiple times on the left-hand side of the assignment.