Bogdanp / racket-review

A linter for Racket.
BSD 3-Clause "New" or "Revised" License
41 stars 4 forks source link

Identifiers containing ~ are mishandled #8

Closed aymanosman closed 3 years ago

aymanosman commented 3 years ago

Here is an example which demonstrates the bug.

$ echo > example.rkt '
quote> #lang racket
quote>
quote> (provide ~foo)
quote>
quote> (define (~foo) 42)
quote> '
$ raco review example.rkt
/tmp/review-bug/example.rkt:6:10:warning:identifier '~~foo' is never used
/tmp/review-bug/example.rkt:4:10:error:identifier '~foo' provided but not defined

Another example:

Screen Shot 2020-10-17 at 13 36 31
Bogdanp commented 3 years ago

Thanks! This should now be fixed.