cursive icon indicating copy to clipboard operation
cursive copied to clipboard

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

Open matj1 opened this issue 1 year ago • 0 comments

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.

matj1 avatar Aug 09 '24 14:08 matj1