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

Mishandled any generation #146

Open
brendanfh opened this issue May 4, 2024 · 0 comments
Open

Mishandled any generation #146

brendanfh opened this issue May 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@brendanfh
Copy link
Collaborator

The following code type checks, but fails to generate the correct WASM instructions.

main :: () {
    x: any = "test"
    printf("x is {}\n", x)
}

This is because any matches any type, but the code generator fails to handle the case where a separate stack allocation for the any data needs to be made.

@brendanfh brendanfh added the bug Something isn't working label May 4, 2024
@brendanfh brendanfh added this to the v0.1.12 milestone May 4, 2024
@brendanfh brendanfh self-assigned this May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant