Fix possible-domains on functions with multiple return values.
original commit: a5f2ca8fb07f92076020053fc6053a5f6808308a
This commit is contained in:
parent
ac527c5d30
commit
fe7589c807
|
@ -182,7 +182,8 @@
|
|||
(ormap (lambda (x) (subtype x fun-ty))
|
||||
others))
|
||||
|
||||
(define expected-ty (and expected (match expected [(tc-result1: t) t])))
|
||||
;; currently does not take advantage of multi-valued expected types
|
||||
(define expected-ty (and expected (match expected [(tc-result1: t) t] [_ #f])))
|
||||
(define (returns-subtype-of-expected? fun-ty)
|
||||
(or (not expected)
|
||||
(match fun-ty
|
||||
|
|
Loading…
Reference in New Issue
Block a user