Skip to content

checker: fix generic option array arg passing to []T#24457

Merged
spytheman merged 3 commits into
vlang:masterfrom
felipensp:fix_generic_array_arg_validate
May 12, 2025
Merged

checker: fix generic option array arg passing to []T#24457
spytheman merged 3 commits into
vlang:masterfrom
felipensp:fix_generic_array_arg_validate

Conversation

@felipensp

Copy link
Copy Markdown
Member

Fix #24423

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22827

@vlang vlang deleted a comment May 10, 2025
@vlang vlang deleted a comment May 10, 2025

fn (mut decoder Decoder) decode_value[T](mut val T) ! {
$if T.unaliased_typ is $array {
// checking wrongly. `decode_array` think that `[]?int` is `[]int`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if the PR fixes it, please remove the comment - it will be confusing after it is merged, if it will be working

@spytheman spytheman merged commit e93c344 into vlang:master May 12, 2025
74 checks passed
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.

checker: wrong method check for array and array of options

2 participants