Skip to content
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

checker: fix break when calling unknown fn call #22348

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Sep 28, 2024

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

By a weird coincidence, I also encountered this (or a very similar) compiler panic today, while iterating on:

fn C.puts(const_s &char) int

@[export: 'main']
fn my_main(argc int, argv &&char) int {
        C.puts(c'Hello, World!')
        return 0
}

@felipensp felipensp marked this pull request as ready for review September 28, 2024 21:41
@spytheman spytheman merged commit 80e09e2 into vlang:master Sep 29, 2024
78 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.

compiler crash when calling C.printf with c function param
2 participants