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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chikaku
Copy link

@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
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
3 participants