You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing the example code in this Discource reply, I had to create the request value in the untyped submodule because typed/web-server/http did not provide constructors properly. As a more self-contained example, with these definitions:
Welcome to DrRacket, version 8.11.1 [cs].
Language: typed/racket, with debugging; memory limit: 128 MB.
> request
. request: identifier for static struct-type information cannot be used as an expression in: request
> make-request
. Type Checker: missing type for top-level identifier;
either undefined or missing a type annotation
identifier: make-request in: make-request
> binding:form
. binding:form: identifier for static struct-type information cannot be used as an expression in: binding:form
> make-binding:form
. Type Checker: missing type for top-level identifier;
either undefined or missing a type annotation
identifier: make-binding:form in: make-binding:form
Given these require/typed/provide clauses, I would have expected all four identifiers to be usable as constructors:
While writing the example code in this Discource reply, I had to create the
request
value in the untyped submodule becausetyped/web-server/http
did not provide constructors properly. As a more self-contained example, with these definitions:#lang typed/racket (require typed/web-server/http)
I get these errors in my interactions:
Given these
require/typed/provide
clauses, I would have expected all four identifiers to be usable as constructors:typed-racket/typed-racket-more/typed/web-server/http.rkt
Lines 41 to 50 in 2e69dea
typed-racket/typed-racket-more/typed/web-server/http.rkt
Lines 29 to 33 in 2e69dea
I haven't yet looked into what might be going wrong.
The text was updated successfully, but these errors were encountered: