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 F* implicit argument with multiple impl args #1272

Open
maximebuyse opened this issue Jan 28, 2025 · 0 comments
Open

Missing F* implicit argument with multiple impl args #1272

maximebuyse opened this issue Jan 28, 2025 · 0 comments
Labels
engine Issue in the engine f* F* backend

Comments

@maximebuyse
Copy link
Contributor

fn f(arg1: impl Clone, arg2: impl Clone) {}

Open this code snippet in the playground

The generated F* for this is:

let f
      (#impl_517411079_ #impl_517411079_:
          Type0)
      (#[FStar.Tactics.Typeclasses.tcresolve
            ()]
          i2:
          Core.Clone.t_Clone
          impl_517411079_)
      (#[FStar.Tactics.Typeclasses.tcresolve
            ()]
          i3:
          Core.Clone.t_Clone
          impl_330573305_)
      (arg1: impl_517411079_)
      (arg2: impl_330573305_)
    : Prims.unit = ()

impl_517411079_ is declared twice and impl_330573305_ is never declared.

@maximebuyse maximebuyse added the engine Issue in the engine label Jan 28, 2025
@franziskuskiefer franziskuskiefer added the f* F* backend label Jan 29, 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 f* F* backend
Projects
None yet
Development

No branches or pull requests

2 participants