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

Weird Error Message from require/typed #1352

Open
rvs314 opened this issue Dec 21, 2023 · 0 comments
Open

Weird Error Message from require/typed #1352

rvs314 opened this issue Dec 21, 2023 · 0 comments

Comments

@rvs314
Copy link

rvs314 commented Dec 21, 2023

What version of Racket are you using?

Racket 8.10 [cs]

What program did you run?

#lang typed/racket

(require/typed racket/stream
  [prop:stream  (Struct-Property Any)]
  [stream->list (-> (Has-Struct-Property prop:stream) (List Any))])

What should have happened?

I'dve liked it to have run without error

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

syntax-property: contract violation
  expected: syntax?
  given: #f
Context (plain):
 /usr/share/racket/pkgs/typed-racket-lib/typed-racket/private/type-contract.rkt:1400:0 has-struct-property->sc
 .../private/map.rkt:40:19 loop
 .../match/compiler.rkt:559:40 f3057
 /usr/share/racket/pkgs/typed-racket-lib/typed-racket/private/type-contract.rkt:335:2 
 .../private/parse-interp.rkt:643:50 
 /usr/share/racket/pkgs/typed-racket-lib/typed-racket/private/type-contract.rkt:239:0 change-contract-fixups
 /usr/share/racket/pkgs/typed-racket-lib/typed-racket/core.rkt:56:10 
 /usr/share/racket/pkgs/typed-racket-lib/typed-racket/typed-racket.rkt:22:4 
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