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

Can't use #:property to seal a Typed Racket structs #1376

Open
shawnw opened this issue May 23, 2024 · 0 comments
Open

Can't use #:property to seal a Typed Racket structs #1376

shawnw opened this issue May 23, 2024 · 0 comments

Comments

@shawnw
Copy link

shawnw commented May 23, 2024

The Typed Racket struct doesn't support #:sealed, but it does have #:property, so I figured you could just use prop:sealed instead. But:

$ racket -I typed/racket
Welcome to Racket v8.13 [cs].
> (struct foo ([bar : Integer]) #:property prop:sealed #t)
string:1:41: Type Checker: missing type for identifier;
 The `racket' language does not seem to have a type for this identifier; please file a bug report
  identifier: prop:sealed
  from module: (lib typed/racket)
  in: prop:sealed
 [,bt for context]

Oddly, DrRacket gives a different, much less useful, error than the command line repl:

Type Checker: expected a struct type property but got Nothing in: #t

Another thing that isn't imported properly into TR?

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