Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interp: fix mismatch assign statement panic #1607

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

chikaku
Copy link
Contributor

@chikaku chikaku commented Jan 25, 2024

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

@CLAassistant
Copy link

CLAassistant commented Jan 25, 2024

CLA assistant check
All committers have signed the CLA.

@ldez ldez changed the title interp: fix mismatch assign statement panic (#1606) interp: fix mismatch assign statement panic Apr 2, 2024
@ldez ldez added bug Something isn't working area/core labels Apr 2, 2024
@ldez ldez force-pushed the bugfix/mismatch-assign-panic branch from 7007a83 to d44bdad Compare April 2, 2024 21:43
@mvertes mvertes added this to the v0.16.x milestone Jul 19, 2024
Copy link
Member

@mvertes mvertes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Thank you for your contrbution and this bug fix.

@traefiker traefiker merged commit c32b3ec into traefik:master Jul 19, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assignment statement compile panic
5 participants