This might be too minimal of an example.
It looks like typed Racket doesn't want you to use Typed Racket types in certain
contexts.
To implement the functionality I think you want from that example, I would
write the following
#lang turnstile
(require (only-in (prefix-in tr: typed/racket)
tr::print-type
tr:ann
tr:#%module-begin
tr:Number
tr:#%datum)
turnstile/no-unicode)
(provide #%datum (rename-out (tr:#%module-begin #%module-begin)))
;[DATUM]
(define-typed-syntax #%datum
[(_ . n:number) >>
-------------------
[≻ (tr:ann (tr:#%datum . n) tr:Number)]])
You probably need to use a Turnstile types in your language, and generate Typed
Racket types using the `ann` form from Typed Racket.
--
William J. Bowman
> --
> You received this message because you are subscribed to the Google Groups "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
racket-users...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/racket-users/b9b56563-3a18-406d-9f2f-935220673b79%40googlegroups.com.