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

Misleading error for records #3757

Open
mtzguido opened this issue Feb 15, 2025 · 0 comments
Open

Misleading error for records #3757

mtzguido opened this issue Feb 15, 2025 · 0 comments

Comments

@mtzguido
Copy link
Member

module A

let foo () : int & bool = { x=1 }
* Error 118 at A.fst(3,28-3,29):
  - Field 'x' is redundant for type FStar.Pervasives.Native.tuple2
  - Missing fields: '_2', '_1'

1 error was reported (see above)

This error should say instead that tuple2 is not a record, or that we expected tuple2 and got a record.

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