File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
typed-racket-lib/typed-racket/infer Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 948948 (for/hash ([(k v) (in-hash cmap)])
949949 (values k (t-subst (constraint->type v (hash-ref var-hash k variance:const))))))]
950950 [subst (for/fold ([subst subst]) ([v (in-list X)])
951- (let ([ entry (hash-ref subst v #f )] )
952- ;; Make sure we got a subst entry for a type var
953- ;; (i.e. just a type to substitute)
954- ;; If we don't have one, there are no constraints on this variable
955- (if (and entry (t-subst? entry))
956- subst
957- (hash-set subst v (t-subst Univ) ))))])
951+ (define entry (hash-ref subst v #f ))
952+ ;; Make sure we got a subst entry for a type var
953+ ;; (i.e. just a type to substitute)
954+ ;; If we don't have one, there are no constraints on this variable
955+ (if (and entry (t-subst? entry))
956+ subst
957+ (hash-set subst v (t-subst Univ))))])
958958 ;; verify that we got all the important variables
959959 (extend-idxs subst)))
960960 (if multiple-substitutions?
You can’t perform that action at this time.
0 commit comments