=
can equate values with different types.
Closes PR 12804.
This commit is contained in:
parent
cc0b887106
commit
cbbd889621
|
@ -1406,6 +1406,10 @@
|
||||||
[tc-e/t (ann #() (Vectorof Integer))
|
[tc-e/t (ann #() (Vectorof Integer))
|
||||||
(-vec -Integer)]
|
(-vec -Integer)]
|
||||||
|
|
||||||
|
[tc-e (let: ([x : Float 0.0])
|
||||||
|
(= 0 x))
|
||||||
|
#:ret (ret -Boolean (-FS -top -top) (make-NoObject))]
|
||||||
|
|
||||||
[tc-e/t (ann (lambda: ([x : Boolean]) (if x x #t)) (Boolean -> #t)) (t:-> -Boolean (-val #t))]
|
[tc-e/t (ann (lambda: ([x : Boolean]) (if x x #t)) (Boolean -> #t)) (t:-> -Boolean (-val #t))]
|
||||||
)
|
)
|
||||||
(test-suite
|
(test-suite
|
||||||
|
|
|
@ -52,7 +52,6 @@
|
||||||
(define-syntax-rule (alt nm pred ...) (and (free-identifier=? #'nm comparator) (or (pred val) ...)))
|
(define-syntax-rule (alt nm pred ...) (and (free-identifier=? #'nm comparator) (or (pred val) ...)))
|
||||||
(or (alt symbol=? symbol?)
|
(or (alt symbol=? symbol?)
|
||||||
(alt string=? string?)
|
(alt string=? string?)
|
||||||
(alt = number?)
|
|
||||||
(alt eq? eq?-able)
|
(alt eq? eq?-able)
|
||||||
(alt eqv? eqv?-able)
|
(alt eqv? eqv?-able)
|
||||||
(alt equal? equal?-able)))
|
(alt equal? equal?-able)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user