Remove obsolete special casing for ann and inst.
This commit is contained in:
parent
32fc2b99b8
commit
48ca13f26d
|
@ -15,15 +15,6 @@
|
||||||
tc-app-objects^ tc-app-eq^ tc-app-lambda^ tc-app-special^)
|
tc-app-objects^ tc-app-eq^ tc-app-lambda^ tc-app-special^)
|
||||||
(export tc-app^)
|
(export tc-app^)
|
||||||
|
|
||||||
|
|
||||||
(define-syntax-class annotated-op
|
|
||||||
(pattern (~and i:identifier (~or :type-inst^ :type-ascription^))))
|
|
||||||
|
|
||||||
(define-tc/app-syntax-class (tc/app-annotated expected)
|
|
||||||
;; Just do regular typechecking if we have one of these.
|
|
||||||
(pattern (~and form (rator:annotated-op . rands))
|
|
||||||
(tc/app-regular #'form expected)))
|
|
||||||
|
|
||||||
(define-tc/app-syntax-class (tc/app-regular* expected)
|
(define-tc/app-syntax-class (tc/app-regular* expected)
|
||||||
(pattern form (tc/app-regular #'form expected)))
|
(pattern form (tc/app-regular #'form expected)))
|
||||||
|
|
||||||
|
@ -34,7 +25,6 @@
|
||||||
#:attr check (attribute v.check)) ...))
|
#:attr check (attribute v.check)) ...))
|
||||||
|
|
||||||
(combine-tc/app-syntax-classes tc/app-special-cases
|
(combine-tc/app-syntax-classes tc/app-special-cases
|
||||||
tc/app-annotated
|
|
||||||
tc/app-list
|
tc/app-list
|
||||||
tc/app-apply
|
tc/app-apply
|
||||||
tc/app-eq
|
tc/app-eq
|
||||||
|
|
Loading…
Reference in New Issue
Block a user