Skip to content

cgen: fix print interface when arg0 is function call#26188

Merged
spytheman merged 2 commits into
vlang:masterfrom
kbkpbot:fix-interface-print-method-call
Dec 28, 2025
Merged

cgen: fix print interface when arg0 is function call#26188
spytheman merged 2 commits into
vlang:masterfrom
kbkpbot:fix-interface-print-method-call

Conversation

@kbkpbot

@kbkpbot kbkpbot commented Dec 28, 2025

Copy link
Copy Markdown
Contributor

Fix issue #26184

It should not deref when the print arg0 is not a err object.

@kbkpbot kbkpbot linked an issue Dec 28, 2025 that may be closed by this pull request

@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.

Excellent work.
Thank you @kbkpbot 🙇🏻 .

@spytheman spytheman merged commit 4425446 into vlang:master Dec 28, 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.

C error on err.msg() call inside or { if err is MyError {

2 participants