Make inference work in subtype tests.

Add test for top-arr.

svn: r12746

original commit: 08fa300d14085b678a0d0fd357613649e2e459b9
This commit is contained in:
Sam Tobin-Hochstadt 2008-12-08 18:26:58 +00:00
parent d24a116dcb
commit 53a5f53d15

View File

@ -23,6 +23,8 @@
(begin (test-suite "Tests for subtyping"
new-cl ...))))]))
(infer-param infer)
(define (subtype-tests)
(subtyping-tests
;; trivial examples
@ -121,6 +123,8 @@
(FAIL (-poly (a b) (-> a a)) (-poly (a b) (-> a b)))
;; polymorphic function types should be subtypes of the function top
[(-poly (a) (a . -> . a)) top-func]
))
(define-go