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

Formatter unfolds unnamed function parameter with refinements weirdly #3187

Open
chandradeepdey opened this issue Jan 4, 2024 · 0 comments

Comments

@chandradeepdey
Copy link
Contributor

type vec (a: Type) : n: nat -> Type =
  | Nil : vec a 0
  | Cons : #n: nat -> hd: a -> tl: vec a n -> vec a (n + 1)

let pconv_vec_z' (#a: Type) (#n: nat) (_:unit{equals n 0}) (v: vec a n) : vec a 0 = Nil

the last line becomes

let pconv_vec_z'
      (#a: Type)
      (#n: nat)
      (_:
          (_:
            unit
              { match _ with
//                    ^
// Failed to resolve implicit argument ?5 of type (*?u4*)
                | _ -> equals n 0
                | _ -> False }))
      (v: vec a n)
    : vec a 0 = Nil

(which also has an error)

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