Use the correct fail handler in type lookup
The other handler is meant for type name environments. In practice, this should never come up in the current codebase, but extensions that use `lookup-type` could rely on it. original commit: 612a7fcca97523e7f4b82b0cb5ecc0d6a6321e29
This commit is contained in:
parent
ad1db428d3
commit
99f901da81
|
@ -58,7 +58,7 @@
|
|||
;; given an identifier, return the type associated with it
|
||||
;; if none found, calls lookup-fail
|
||||
;; identifier -> type
|
||||
(define (lookup-type id [fail-handler (λ () (lookup-type-fail id))])
|
||||
(define (lookup-type id [fail-handler (λ () (lookup-fail id))])
|
||||
(define v (free-id-table-ref the-mapping id fail-handler))
|
||||
(cond [(box? v) (unbox v)]
|
||||
[(procedure? v) (define t (v)) (register-type id t) t]
|
||||
|
|
Loading…
Reference in New Issue
Block a user