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

Compiler crash when declaring methods on arrays of distinct type #2042

Open
cbuttner opened this issue Mar 12, 2025 · 1 comment
Open

Compiler crash when declaring methods on arrays of distinct type #2042

cbuttner opened this issue Mar 12, 2025 · 1 comment
Assignees
Labels
Fixed Needs Verification Fixed, but needs verification that it works
Milestone

Comments

@cbuttner
Copy link
Contributor

This asserts with ⚠️ The compiler encountered an unexpected error: "Violated assert: type->decl->resolve_status == RESOLVE_DONE".:

distinct Foo = int;
fn void Foo[2].foo(&self) {}
// Same with:
macro Foo[2].bar(&self) {}

I'm not on the latest commit so please ignore if this has already been fixed.

@lerno lerno self-assigned this Mar 12, 2025
@lerno lerno added the Fixed Needs Verification Fixed, but needs verification that it works label Mar 12, 2025
@lerno
Copy link
Collaborator

lerno commented Mar 12, 2025

This should be fixed now.

@lerno lerno added this to the 0.7.0 milestone Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Needs Verification Fixed, but needs verification that it works
Projects
None yet
Development

No branches or pull requests

2 participants