Make inference work in subtype tests.
Add test for top-arr. svn: r12746 original commit: 08fa300d14085b678a0d0fd357613649e2e459b9
This commit is contained in:
parent
d24a116dcb
commit
53a5f53d15
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user