Skip to content

cgen: correct function definitions for callbacks in imported modules#25719

Merged
spytheman merged 1 commit into
vlang:masterfrom
dy-tea:callback-consume
Nov 13, 2025
Merged

cgen: correct function definitions for callbacks in imported modules#25719
spytheman merged 1 commit into
vlang:masterfrom
dy-tea:callback-consume

Conversation

@dy-tea

@dy-tea dy-tea commented Nov 13, 2025

Copy link
Copy Markdown
Member

Fixes #25700.

1st fix was provided by @sukus21 in https://github.com/sukus21/v/commit/3f1c6fb9f767ad604f086f9a4b234554a1443b51.

Other fix was simply using g.ret_styp instead of g.styp in fn_decl_params.

@spytheman spytheman left a comment

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.

Thank you @dy-tea 🙇🏻, thanks @sukus21 🙇🏻‍♂️.

@spytheman spytheman merged commit f33caca into vlang:master Nov 13, 2025
84 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.

cgen: Function types with fixed-length arrays sometimes not translating properly in submodules

2 participants