Add test cases for subtyping of -Bottom.

original commit: b199527ec28dcdba51e45878b16ad6f71f479582
This commit is contained in:
Eric Dobson 2014-06-20 21:46:23 -07:00
parent 2305c21c22
commit cd53de226c

View File

@ -264,6 +264,9 @@
[FAIL (make-ValuesDots (list) -Symbol 'a) (make-ValuesDots (list (-result -String)) -String 'a)]
[(-values (list -Bottom)) (-values (list -String -Symbol))]
[(-> Univ -Bottom) (-> Univ (-values (list -String -Symbol)))]
[(-> Univ -Bottom) (-> Univ (-values-dots null -String 'x))]
;; keyword function types
[(->key #:x -Symbol #f Univ) (->key Univ)]
[FAIL (->key #:x -Symbol #t Univ) (->key Univ)]