Bogdanp / racket-review

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

Struct fields flagged as “never used” despite being provided #9

Closed otherjoel closed 3 years ago

otherjoel commented 3 years ago

In this module, struct fields are all flagged by racket-review with, e.g., X identifier 'voice-languages' is never used:

#lang racket/base

(provide (struct-out voice))
(struct voice (languages name sample-rate gender) #:transparent)

Not sure if this could be done without too much trouble, but it would be neat if racket-review could tell when a struct has been provided and not count its definition as an error.

otherjoel commented 3 years ago

This works! Thanks!