Fix for empty case-lambdas.
This commit is contained in:
parent
df0ae80a7f
commit
c085f51aa2
|
@ -243,9 +243,9 @@
|
||||||
;; this point, we've reversed the list) is the most general of
|
;; this point, we've reversed the list) is the most general of
|
||||||
;; all, subsuming all the others. If that's the case, just go
|
;; all, subsuming all the others. If that's the case, just go
|
||||||
;; with it. Otherwise, go the slow way.
|
;; with it. Otherwise, go the slow way.
|
||||||
(define potentially-most-general (car fun-tys-ret-any))
|
(if (and (not (null? fun-tys-ret-any))
|
||||||
(if (andmap (lambda (c) (subtype potentially-most-general c))
|
(andmap (lambda (c) (subtype (car fun-tys-ret-any) c))
|
||||||
fun-tys-ret-any)
|
fun-tys-ret-any))
|
||||||
;; Yep. Return early.
|
;; Yep. Return early.
|
||||||
(apply values (map list (car parts-acc)))
|
(apply values (map list (car parts-acc)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user