Fix type-name-env contracts and uses
This commit is contained in:
parent
f0c48cfb87
commit
d22bf8cc11
|
@ -235,7 +235,7 @@
|
|||
(register-type-name id type)
|
||||
(add-constant-variance! id args)
|
||||
(check-type-alias-contractive id type)
|
||||
(values id type args)))
|
||||
(values id type (map syntax-e args))))
|
||||
|
||||
;; Finally, do a last pass to refine the variance
|
||||
(refine-variance! names-to-refine types-to-refine tvarss))
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
(-> (listof identifier?) (listof Type/c) any)]
|
||||
[add-alias (-> identifier? identifier? any)]
|
||||
[type-name-env-map
|
||||
(-> (-> identifier? Type/c any) any)]
|
||||
(-> (-> identifier? (or/c #t Type/c) any) any)]
|
||||
[type-variance-env-map
|
||||
(-> (-> identifier? variance? any) any)]
|
||||
(-> (-> identifier? (listof variance?) any) any)]
|
||||
[lookup-type-name
|
||||
(->* (identifier?) (procedure?) (or/c #t Type/c))]
|
||||
[register-type-variance!
|
||||
|
|
Loading…
Reference in New Issue
Block a user