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

Constants with generics are handled badly #513

Closed
W95Psp opened this issue Feb 19, 2024 · 4 comments
Closed

Constants with generics are handled badly #513

W95Psp opened this issue Feb 19, 2024 · 4 comments
Assignees
Labels
bug Something isn't working engine Issue in the engine

Comments

@W95Psp
Copy link
Collaborator

W95Psp commented Feb 19, 2024

trait Foo {
    type X;
    const FOO: Self::X;
}

fn f<T: Foo<X = usize>>(x: T) -> usize {
    T::FOO + 3
}

In f, T::FOO is a GlobalVar, not an App.

@W95Psp W95Psp added bug Something isn't working engine Issue in the engine labels Feb 19, 2024
@W95Psp W95Psp self-assigned this Feb 19, 2024
Copy link

github-actions bot commented Sep 8, 2024

This issue has been marked as stale due to a lack of activity for 60 days. If you believe this issue is still relevant, please provide an update or comment to keep it open. Otherwise, it will be closed in 7 days.

@github-actions github-actions bot added the stale label Sep 8, 2024
Copy link

This issue has been closed due to a lack of activity since being marked as stale. If you believe this issue is still relevant, please reopen it with an update or comment.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
@W95Psp
Copy link
Collaborator Author

W95Psp commented Sep 16, 2024

That's still a bug

@W95Psp W95Psp reopened this Sep 16, 2024
@W95Psp W95Psp removed the stale label Sep 16, 2024
@W95Psp
Copy link
Collaborator Author

W95Psp commented Oct 14, 2024

This was closed by #989

@W95Psp W95Psp closed this as completed Oct 14, 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 engine Issue in the engine
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant