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

Symbols as test constants in a case expression are labeled as unable to be resolved. #2943

Open
matj1 opened this issue Aug 9, 2024 · 0 comments

Comments

@matj1
Copy link

matj1 commented Aug 9, 2024

If I use symbols as test constants in a case expression, they are not quoted because the constants are not evaluated. But Cursive doesn't realize that and labels them as unable to be resolved (like “a cannot be resolved”), although there is not anything to be resolved.

Example

(case 'a
  a 1
  b 2
  c 3
  0)
; => 1

A screenshot from Cursive with a case expression with symbols shown as unable to be resolved

Proposed solution

Exclude case's test constants from name resolution in Cursive.

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