typed-racket icon indicating copy to clipboard operation
typed-racket copied to clipboard

Typed Racket

Results 172 typed-racket issues
Sort by recently updated
recently updated
newest added

While TR provides variadic type constructors like `Values`, `U`, and `Sequenceof`, users cannot define their own using `define-type`. Currently, `define-type` treats `...` as a normal type argument. For instance, attempting...

**Is your feature request related to a problem? Please describe.** Typed Racket uses predicates to refine types, but this approach has limitations since many types cannot have corresponding predicates. This...

**What version of Racket are you using?** `Welcome to Racket v8.16 [cs].` **What program did you run?** ``` $ racket -l typed/racket -i > in-directory - : (->* () ((U...

``` #lang typed/racket (define (g x) x) (define x : Number (g 42)) (define y : String (g "hello")) ``` TR does not reject the program, even though g has...

**What version of Racket are you using?** 8.15 **What program did you run?** ```racket #lang typed/racket (require qi) (: add-up (-> Number Number Number)) (define (add-up n m) (+ n...

These can produce complex results for flonum inputs. Closes #1423.

Per the discussion in https://racket.discourse.group/t/acos-behaves-differently-on-s-1-0-in-tr/3453 ... it appears there is a soundness problem around the use of `flacos` to implement `acos` in TR. Specifically, this program, constructed by @usaoc ,...

This PR provides typed version fxpopcount functions, related to [issue1319](https://github.com/racket/typed-racket/issues/1319). Before ``` Welcome to Racket v8.15-2024-12-25-34ef1af7ec [cs]. > (require racket/fixnum) > (fxpopcount 42) string:1:1: Type Checker: missing type for identifier;...

I'm not 100% sure this is a TR bug, but here's the program: ```racket #lang typed/racket (define length #e1e4) (define inner-loop (* 10 length)) (define u (cast (string->number (vector-ref (current-command-line-arguments)...

This Typed Racket program should report that the "Should be a failure" test failed and no tests succeeded. ```racket #lang typed/racket (require typed/rackunit typed/rackunit/text-ui) (run-tests (test-suite "Tests" (test-equal? "Should be...