fix or pattern

svn: r9059

original commit: 709741fc96777a02628ba545594ce5e04d2464ad
This commit is contained in:
Sam Tobin-Hochstadt 2008-03-22 02:27:13 +00:00
parent 15ff7a9956
commit 0572a47806

View File

@ -99,7 +99,7 @@
(match (list s t)
;; top for functions is above everything
[(list _ (top-arr:)) A0]
[(list (arr: s1 s2 #f thn-eff els-eff) (arr: t1 t2 #f (or '() thn-eff) (or '() els-eff)))
[(list (arr: s1 s2 #f thn-eff els-eff) (arr: t1 t2 #f thn-eff els-eff))
(let ([A1 (subtypes* A0 t1 s1)])
(subtype* A1 s2 t2))]
[(list (arr: s1 s2 s3 thn-eff els-eff) (arr: t1 t2 t3 thn-eff* els-eff*))