Skip to content

Commit b3ba324

Browse files
committed
fix typed racket named let: error when there are no binding types
closes PR 13691 include in release
1 parent 9a52894 commit b3ba324

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#lang typed/racket
2+
3+
(let: loop : Integer ([b #t]) 3)

collects/typed-racket/base-env/prims.rkt

+2-2
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ This file defines two sorts of primitives. All of them are provided into any mod
428428
#,(quasisyntax/loc stx
429429
(lambda (bs.ann-name ...) . #,(syntax/loc stx body)))])
430430
#,(quasisyntax/loc stx nm)))]
431-
[(: ret-ty (bs:optionally-annotated-binding ...) . body)
431+
[(: ret-ty (bs:optionally-annotated-binding ...) body ... bod)
432432
(quasisyntax/loc stx
433433
(letrec ([nm #,(quasisyntax/loc stx
434-
(lambda (bs.ann-name ...) . (ann #,(syntax/loc stx body) ret-ty)))])
434+
(lambda (bs.ann-name ...) body ... (ann #,(syntax/loc stx bod) ret-ty)))])
435435
#,(quasisyntax/loc stx nm)))]
436436
[((bs:optionally-annotated-binding ...) . body)
437437
(quasisyntax/loc stx

0 commit comments

Comments
 (0)