Skip to content

checker: allow no return in compile_error else block - #18758

Merged
spytheman merged 1 commit into
vlang:masterfrom
phoreverpheebs:fix_18757
Jul 4, 2023
Merged

spytheman merged 1 commit into
vlang:masterfrom
phoreverpheebs:fix_18757

Conversation

@phoreverpheebs

@phoreverpheebs phoreverpheebs commented Jul 3, 2023 •

Copy link
Copy Markdown
Contributor

Closes #18757

πŸ€– Generated by Copilot at 0ad0b20

Allow $compile_error macro in branches that do not return a value. Add a test case and a test output file for this feature.

πŸ€– Generated by Copilot at 0ad0b20

  • Add a special case for comptime function calls with $compile_error macro (link)
  • Add a test case and output for the comptime function call with $compile_error macro (link, link)

Comment thread vlib/v/checker/return.v
@spytheman
spytheman merged commit 1db67f7 into vlang:master Jul 4, 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.

checker: no return in compile_error else block

3 participants