Simplify tc-expr testcase.
This commit is contained in:
parent
7c4012bbd4
commit
aa6a04fd46
|
@ -735,13 +735,7 @@
|
||||||
(boolean? x))
|
(boolean? x))
|
||||||
(if (boolean? x) 1 x)
|
(if (boolean? x) 1 x)
|
||||||
4))
|
4))
|
||||||
#:proc (get-let-name
|
#:ret (ret Univ -true-filter)]
|
||||||
x 0
|
|
||||||
(ret Univ
|
|
||||||
(-FS
|
|
||||||
-top
|
|
||||||
(-and (make-NotTypeFilter -Boolean null #'x) (make-TypeFilter (-val #f) null #'x)))))]
|
|
||||||
|
|
||||||
;; T-AbsPred
|
;; T-AbsPred
|
||||||
[tc-e/t (let ([p? (lambda: ([x : Any]) (number? x))])
|
[tc-e/t (let ([p? (lambda: ([x : Any]) (number? x))])
|
||||||
(lambda: ([x : Any]) (if (p? x) (add1 x) (add1 12))))
|
(lambda: ([x : Any]) (if (p? x) (add1 x) (add1 12))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user