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

for loop fails to infer subtype. #1321

Open
NoahStoryM opened this issue Mar 17, 2023 · 0 comments
Open

for loop fails to infer subtype. #1321

NoahStoryM opened this issue Mar 17, 2023 · 0 comments

Comments

@NoahStoryM
Copy link
Contributor

What version of Racket are you using?

v8.8 [cs]

What program did you run?

Welcome to Racket v8.8 [cs].
> (ann (ann 1 Integer) Real)
- : Real
1
> (for ([i : Real (in-range 30)]) i)
string:1:0: Type Checker: type mismatch
  expected: Integer
  given: Real
  in: (for ((i : Real (in-range 30))) i)
 [,bt for context]
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