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

checker: fix compiler panic for passing an extra decompose parameter to a function (fix: 18995) #18996

Merged
merged 1 commit into from
Jul 29, 2023

Conversation

shove70
Copy link
Contributor

@shove70 shove70 commented Jul 28, 2023

Fixed: #18995

fn main() {
	foo(...args)
}

fn foo() {
}
vlib/v/checker/tests/fn_array_decompose_arg_mismatch_err_c.vv:2:6: error: expected 0 arguments, but got 1
    1 | fn main() {
    2 |     foo(...args)
      |         ~~~~~~~
    3 | }
    4 |

@spytheman spytheman changed the title checker: fix compiler crashes when passing an extra decompose parameter to a function(fix: 18995) checker: fix compiler panic when passing an extra decompose parameter to a function(fix: 18995) Jul 28, 2023
@spytheman spytheman changed the title checker: fix compiler panic when passing an extra decompose parameter to a function(fix: 18995) checker: fix compiler panic for passing an extra decompose parameter to a function (fix: 18995) Jul 28, 2023
@spytheman spytheman merged commit 8586f18 into vlang:master Jul 29, 2023
48 checks passed
@shove70 shove70 deleted the decompose branch July 29, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compiler crashes: when passing an extra decompose parameter to a function
2 participants