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

Engine: F*: missing implicit type arguments for associated constants #1139

Open
W95Psp opened this issue Nov 26, 2024 · 1 comment
Open

Engine: F*: missing implicit type arguments for associated constants #1139

W95Psp opened this issue Nov 26, 2024 · 1 comment
Labels
bug Something isn't working engine Issue in the engine

Comments

@W95Psp
Copy link
Collaborator

W95Psp commented Nov 26, 2024

trait Trait {
    const C: u8;
    fn function();
}

fn f<T: Trait>(x: T) -> u8 {
    T::function();
    T::C
}

Open this code snippet in the playground

The F* extraction is:

let f (#v_T: Type0) (#i1: t_Trait v_T) (x: v_T): u8 =
  f_function #v_T #FStar.Tactics.Typeclasses.solve ();
  f_C                      #FStar.Tactics.Typeclasses.solve

Here, the call to f_C is wrong: we are missing the v_T implicit argument.

@W95Psp W95Psp added bug Something isn't working engine Issue in the engine labels Nov 26, 2024
@W95Psp
Copy link
Collaborator Author

W95Psp commented Dec 3, 2024

I worked on that locally.

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
None yet
Development

No branches or pull requests

1 participant