Skip to content

checker: fix interface param resolution - #18780

Merged
spytheman merged 2 commits into
vlang:masterfrom
felipensp:fix_interface_cast
Jul 5, 2023
Merged

spytheman merged 2 commits into
vlang:masterfrom
felipensp:fix_interface_cast

Conversation

@felipensp

@felipensp felipensp commented Jul 4, 2023 •

Copy link
Copy Markdown
Member

Fix #18768

πŸ€– Generated by Copilot at 09e630a

Fix interface to concrete type casting in function calls. Update vlib/v/checker/fn.v to use the parameter type instead of the target type when checking for type compatibility.

πŸ€– Generated by Copilot at 09e630a

  • Fix interface type mismatch errors when passing to functions (link)

@felipensp
felipensp marked this pull request as ready for review July 5, 2023 02:31

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

Good work.

@spytheman
spytheman merged commit 072364f into vlang:master Jul 5, 2023
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 error involving pointers and interfaces

2 participants