Enable contract and add a purpose statement
original commit: ef08cc41e741adc355295d579f4440b8436bb91f
This commit is contained in:
parent
050a030415
commit
d991a2e125
|
@ -209,8 +209,9 @@
|
|||
(match (tc-expr/check e t)
|
||||
[(tc-result1: t) t]))
|
||||
|
||||
(define (tc-expr/check/type form expected)
|
||||
#;(syntax? Type/c . -> . tc-results/c)
|
||||
;; typecheck an expression by passing tr-expr/check a tc-results
|
||||
(define/cond-contract (tc-expr/check/type form expected)
|
||||
(--> syntax? Type/c tc-results/c)
|
||||
(tc-expr/check form (ret expected)))
|
||||
|
||||
(define (tc-expr/check form expected)
|
||||
|
|
Loading…
Reference in New Issue
Block a user