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

codegen: Unable to generate union array promotion #114

Open
delasy opened this issue Jan 2, 2025 · 0 comments
Open

codegen: Unable to generate union array promotion #114

delasy opened this issue Jan 2, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@delasy
Copy link
Member

delasy commented Jan 2, 2025

fn example (a: str[]) {
}

main {
  mut a: (int | str)[]
  example(a)
}

another example:

fn example (a: (int | str)[]) {
}

main {
  mut a: str[]
  example(a)
}
@delasy delasy added the bug Something isn't working label Jan 2, 2025
@delasy delasy added this to the v1.0 milestone Jan 2, 2025
@delasy delasy self-assigned this Jan 2, 2025
@delasy delasy changed the title codegen: Unable to generate union array narrowing or promotion codegen: Unable to generate union array promotion Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant