yaegi icon indicating copy to clipboard operation
yaegi copied to clipboard

interp: fix mismatch assign statement panic

Open chikaku opened this issue 1 year ago • 1 comments

Follow by the Spec:

The number of operands on the left hand side must match the number of values. For instance, if f is a function returning two values x, y = f() assigns the first value to x and the second to y.

In the second form, the number of operands on the left must equal the number of expressions on the right, each of which must be single-valued, and the nth expression on the right is assigned to the nth operand on the left.

Fixes #1606

chikaku avatar Jan 25 '24 16:01 chikaku

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 25 '24 16:01 CLAassistant