Skip to content

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

Merged
spytheman merged 1 commit intovlang:masterfrom
shove70:decompose
Jul 29, 2023
Merged

checker: fix compiler panic for passing an extra decompose parameter to a function (fix: 18995)#18996
spytheman merged 1 commit intovlang:masterfrom
shove70:decompose

Conversation

@shove70
Copy link
Copy Markdown
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
@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