Skip to content

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

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

Merged
merged 3 commits into from
May 12, 2025

Conversation

felipensp
Copy link
Member

Fix #24423

Copy link

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
Member

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