Open NoahStoryM opened 3 years ago
v8.3
#lang typed/racket/base
(define-type Non-Hash (Refine [t : Any] (! t HashTableTop)))
(ann eof Non-Hash)
#<eof>
And there is no problem with the following code:
#lang typed/racket/base
(define-type Non-Symbol (Refine [t : Any] (! t Symbol)))
(ann eof Non-Symbol)
draft.rkt:4:5: Type Checker: type mismatch
expected: Non-Hash
given: EOF
in: eof
location...:
draft.rkt:4:5
context...:
/usr/share/racket/pkgs/typed-racket-lib/typed-racket/typecheck/tc-toplevel.rkt:407:0: type-check
/usr/share/racket/pkgs/typed-racket-lib/typed-racket/typecheck/tc-toplevel.rkt:651:0: tc-module
/usr/share/racket/pkgs/typed-racket-lib/typed-racket/tc-setup.rkt:101:12
/usr/share/racket/pkgs/typed-racket-lib/typed-racket/typed-racket.rkt:22:4
What version of Racket are you using?
v8.2
What program did you run?
What should have happened?
No error.
And there is no problem with the following code:
If you got an error message, please include it here.