unisonweb / unison

A friendly programming language from the future
https://unison-lang.org
Other
5.81k stars 271 forks source link

lsp unused binding warning shown on wrong line #5418

Open aryairani opened 1 month ago

aryairani commented 1 month ago

Describe and demonstrate the bug

const = cases
  a -> cases
    b -> a

The warning is that b is unused (which it is), but the warning appears on a.

Screenshots

image image

Environment (please complete the following information):

Additional context