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

ICE: Self type not provided for type alias declarations in impls #6969

Open
jjcnn opened this issue Feb 28, 2025 · 0 comments
Open

ICE: Self type not provided for type alias declarations in impls #6969

jjcnn opened this issue Feb 28, 2025 · 0 comments
Labels
bug Something isn't working compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen team:compiler Compiler Team

Comments

@jjcnn
Copy link
Contributor

jjcnn commented Feb 28, 2025

The following impls both result in an ICE:

struct S {}

impl S {
    type D = [u64;1];
}
struct C<T> {
    a: T
}

impl<T> C<T>{
    type D = [T; 1];
}

The error message is Self type not provided.

@jjcnn jjcnn added bug Something isn't working compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen team:compiler Compiler Team labels Feb 28, 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 compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen team:compiler Compiler Team
Projects
None yet
Development

No branches or pull requests

1 participant