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