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

:kind can't work for List* and List (maybe more type-level expression) #1171

Open
NoahStoryM opened this issue Dec 2, 2021 · 2 comments · May be fixed by #1179
Open

:kind can't work for List* and List (maybe more type-level expression) #1171

NoahStoryM opened this issue Dec 2, 2021 · 2 comments · May be fixed by #1179

Comments

@NoahStoryM
Copy link
Contributor

What version of Racket are you using?

v8.3.0.8 [cs]

What program did you run?

> (:kind List*)
string:1:7: Type Checker: parse error in type;
 type name `List*' is unbound
  in: List*
 [,bt for context]
> (:kind List)
string:1:7: Type Checker: parse error in type;
 type name `List' is unbound
  in: List
 [,bt for context]
@NoahStoryM
Copy link
Contributor Author

I'm not sure if this is normal for All:

> (:kind All)
string:1:7: Type Checker: parse error in type;
 type name `All' is unbound
  in: All
 [,bt for context]

@capfredf
Copy link
Sponsor Member

capfredf commented Dec 2, 2021

Thanks for the report. (:kind List) and (:kind List*) need special treatments. I forgot about it and I will fix it later this week.

All, on the other hand, is neither a type nor a type constructor. It is a syntax keyword for writing parametric types.

@capfredf capfredf linked a pull request Dec 19, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants