File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
typed-racket-lib/typed-racket/typecheck Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 5555
5656 ;; currently does not take advantage of multi-valued or arbitrary-valued expected types,
5757 (define expected-ty
58- (and expected
59- ( match expected
60- [(tc-result1: t) t]
61- [(tc-any-results: (or #f (TrueProp:))) #t ] ; anything is a subtype of expected
62- [_ #f ]) )) ; don't know what it is, don't do any pruning
58+ (match expected
59+ [ #f #f ]
60+ [(tc-result1: t) t]
61+ [(tc-any-results: (or #f (TrueProp:))) #t ] ; anything is a subtype of expected
62+ [_ #f ])) ; don't know what it is, don't do any pruning
6363 (define (returns-subtype-of-expected? fun-ty)
6464 (or (not expected) ; no expected type, anything is fine
6565 (eq? expected-ty #t ) ; expected is tc-anyresults, anything is fine
You can’t perform that action at this time.
0 commit comments