fix typed racket named let: error when there are no binding types

closes PR 13691

include in release

original commit: b3ba324a9263bb3b170cac8476b58f1217f381c5
This commit is contained in:
Stephen Chang 2013-04-12 18:23:57 -04:00
parent 5644dbec4b
commit 28a898f4fe
2 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,3 @@
#lang typed/racket
(let: loop : Integer ([b #t]) 3)

View File

@ -428,10 +428,10 @@ This file defines two sorts of primitives. All of them are provided into any mod
#,(quasisyntax/loc stx
(lambda (bs.ann-name ...) . #,(syntax/loc stx body)))])
#,(quasisyntax/loc stx nm)))]
[(: ret-ty (bs:optionally-annotated-binding ...) . body)
[(: ret-ty (bs:optionally-annotated-binding ...) body ... bod)
(quasisyntax/loc stx
(letrec ([nm #,(quasisyntax/loc stx
(lambda (bs.ann-name ...) . (ann #,(syntax/loc stx body) ret-ty)))])
(lambda (bs.ann-name ...) body ... (ann #,(syntax/loc stx bod) ret-ty)))])
#,(quasisyntax/loc stx nm)))]
[((bs:optionally-annotated-binding ...) . body)
(quasisyntax/loc stx