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

Error "This clause has target type ... which is not usable" highlights pattern instead of clause #7262

Open
andreasabel opened this issue May 15, 2024 · 0 comments
Assignees
Labels
range type: bug Issues and pull requests about actual bugs ux: error reporting Issues to do with how Agda reports errors
Milestone

Comments

@andreasabel
Copy link
Member

Issue5468.agda:33,7-12
This clause has target type A which is not usable at the required
modality @ω.

The correct range would be 33,1-12.
Currently, attention is directed to a pattern which is not actually the cause of the error.

@andreasabel andreasabel added type: bug Issues and pull requests about actual bugs ux: error reporting Issues to do with how Agda reports errors range labels May 15, 2024
@andreasabel andreasabel added this to the 2.7.0 milestone May 15, 2024
@andreasabel andreasabel self-assigned this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
range type: bug Issues and pull requests about actual bugs ux: error reporting Issues to do with how Agda reports errors
Projects
None yet
Development

No branches or pull requests

1 participant