= can equate values with different types.

Closes PR 12804.
This commit is contained in:
Sam Tobin-Hochstadt 2012-06-03 10:25:25 -04:00
parent cc0b887106
commit cbbd889621
2 changed files with 5 additions and 2 deletions

View File

@ -1406,6 +1406,10 @@
[tc-e/t (ann #() (Vectorof 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))]
)
(test-suite

View File

@ -51,8 +51,7 @@
(define (ok? val)
(define-syntax-rule (alt nm pred ...) (and (free-identifier=? #'nm comparator) (or (pred val) ...)))
(or (alt symbol=? symbol?)
(alt string=? string?)
(alt = number?)
(alt string=? string?)
(alt eq? eq?-able)
(alt eqv? eqv?-able)
(alt equal? equal?-able)))