Skip to content

Commit 56423ed

Browse files
committed
Put for/hash's default type into or instead of using assignment.
1 parent cf2f7e4 commit 56423ed

File tree

1 file changed

+1
-2
lines changed
  • typed-racket-lib/typed-racket/base-env

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,7 @@ the typed racket language.
608608
clause:for-clauses
609609
a2:optional-standalone-annotation*
610610
body ...) ; body is not always an expression, can be a break-clause
611-
(define a.ty (or (attribute a2.ty) (attribute a1.ty)))
612-
(unless a.ty (set! a.ty #'(Immutable-HashTable Any Any)))
611+
(define a.ty (or (attribute a2.ty) (attribute a1.ty) #'(Immutable-HashTable Any Any)))
613612
(quasisyntax/loc stx
614613
(for/fold: : #,a.ty
615614
((return-hash : #,a.ty (ann (#,hash-maker null) #,a.ty)))

0 commit comments

Comments
 (0)