Fix type-name-env contracts and uses

This commit is contained in:
Asumu Takikawa 2015-04-08 03:23:55 -04:00
parent f0c48cfb87
commit d22bf8cc11
2 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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!