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

require/typed yields "unused require" warnings #1370

Open
bjornkihlberg opened this issue Apr 27, 2024 · 0 comments
Open

require/typed yields "unused require" warnings #1370

bjornkihlberg opened this issue Apr 27, 2024 · 0 comments

Comments

@bjornkihlberg
Copy link

require/typed produces multiple inexplicable unused require warnings. This is not strictly a problem but it still make me wonder what is going on here.

What version of Racket are you using?

Environment

What program did you run?

Minimal example to reproduce issue

#lang typed/racket

(module my-sub-module racket
  (provide f g)
  (define (f x) (* x 2))
  (define (g x) (+ x 2)))

(require/typed 'my-sub-module
               [f (-> Real Real)]
               [g (-> Real Real)])

(displayln (f (g 5)))

What should have happened?

I don't think I should get unused require warnings for this program.

If you got an error message, please include it here.

Each annotated identifier seems to produce two unused require each.

  • Screenshot 1:
    image
  • Screenshot 2:
    image
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