Skip to content

typed/rackunit: with-check-info broken #160

@danielrothfus

Description

@danielrothfus

Given the following program on Racket v8.6 [cs]:

#lang typed/racket

(require rackunit)

(for-each
   (lambda (elt)
     (with-check-info
      (('current-element elt))
      (check-pred odd? elt)))
   (list 1 3 5 7 8))

The following error is generated at compile time:

; test.rkt:7:5: Type Checker: missing type for identifier;
;  consider using `require/typed' to import it
;   identifier: with-check-info*
;   from module: check-info.rkt
;   in: (with-check-info (((quote current-element) elt)) (check-pred odd? elt))
...

and other similar errors for make-check-info and provide/contract-id-syntax->location (which I've only seen references to on racket/typed-racket#989).

I've poked around for a fix but haven't found a solution yet. If you can point me in the right direction, I can try to make a patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions