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

Failure when metaprogramming a dependent tuple, with top-level pattern #3727

Open
mtzguido opened this issue Feb 7, 2025 · 1 comment
Open

Comments

@mtzguido
Copy link
Member

mtzguido commented Feb 7, 2025

open FStar.Tactics.V2

let (| x, y |) =
  (_ by (
    apply (`Mkdtuple2);
    trefl ()
  ))
  <: (y:int & squash (1 == y))

Gives

* Error 54 at tests/tactics/Postprocess.fst(20,10-20,11):
  - (*?u17*) _ is not equal to the expected type x

Raised during solve_deferred_constraints in phase1.

@mtzguido
Copy link
Member Author

Actually not related to tactics at all

let tup = (| 1, () |) <: (y:int & squash (1 == y))
let y = match tup with | Mkdtuple2 _ y -> y

gives the same error. I recall a similar issue but couldn`t find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant