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

Missing parameter for associated constant of parametric impl #1289

Open
maximebuyse opened this issue Feb 4, 2025 · 0 comments · May be fixed by #1293
Open

Missing parameter for associated constant of parametric impl #1289

maximebuyse opened this issue Feb 4, 2025 · 0 comments · May be fixed by #1293
Assignees
Labels
engine Issue in the engine

Comments

@maximebuyse
Copy link
Contributor

struct Test<const N: usize>();

impl<const N: usize> Test<N> {
    const A: Self = Self();
}

fn test() -> Test<1> {
    Test::<1>::A
}

Open this code snippet in the playground

In the example above, the generated F* for test is: let test (_: Prims.unit) : t_Test (mk_usize 1) = impl__A.
The parameter for impl__A is missing (it should be impl__A (mk_usize 1))

@maximebuyse maximebuyse added the engine Issue in the engine label Feb 4, 2025
@maximebuyse maximebuyse self-assigned this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Issue in the engine
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant