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

infix does not match on let (++) = append vs let (+++) a b = append a b #3672

Open
briangmilnes opened this issue Jan 10, 2025 · 0 comments
Open

Comments

@briangmilnes
Copy link
Contributor

InfixBug.fsti
module InfixBug

open FStar.Seq
val append : #a:eqtype -> s1:seq a → s2:seq a → Tot (seq a)
val (+++) : #a:eqtype -> s1:seq a → s2:seq a → Tot (seq a)
val (++) : #a:eqtype -> s1:seq a → s2:seq a → Tot (seq a)
val foo: nat -> nat

InfixBug.fst
module InfixBug

open FStar.Seq

let append (#a:eqtype) (s1:seq a) (s2:seq a) : Tot (seq a)
= s1

let (+++) a b = append

let (++) = append

// Error 233 at src/fstar/fst/InfixBug.fst(12,0-12,19):
// - Expected the definition of op_Plus_Plus to precede [foo]

let foo (n:nat) = n

Not very important bug though.

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