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

Bad type error when missing () after operator application #1435

Open
bugarela opened this issue May 9, 2024 · 0 comments
Open

Bad type error when missing () after operator application #1435

bugarela opened this issue May 9, 2024 · 0 comments
Labels
error messages Collects issues steming from poor error messages typechecker Type checker for Quint

Comments

@bugarela
Copy link
Collaborator

bugarela commented May 9, 2024

It complains about a record. We should figure out that there is an operator with that name and complain about missing parenthesis instead.

quint typecheck test.qnt
test.qnt:2:28 - error: [QNT000] Couldn't unify list and rec
Trying to unify List[a] and { length: _t0 | tail__t0 }

2:   def f(l: List[a]): int = l.length
                              ^^^^^^^^

error: typechecking failed
@bugarela bugarela added typechecker Type checker for Quint error messages Collects issues steming from poor error messages labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Collects issues steming from poor error messages typechecker Type checker for Quint
Projects
None yet
Development

No branches or pull requests

1 participant