Updates along useless paths are not errors.

original commit: 4ceda9970005b4da3b56b0e48a0d69de05e3fa54
This commit is contained in:
Sam Tobin-Hochstadt 2010-05-12 18:24:19 -04:00
parent 5fb5d7125b
commit 772abbfa81

View File

@ -60,7 +60,9 @@
[((Union: ts) lo)
(apply Un (map (lambda (t) (update t lo)) ts))]
[(t* lo)
(int-err "update along ill-typed path: ~a ~a ~a" t t* lo)]))
#;
(int-err "update along ill-typed path: ~a ~a ~a" t t* lo)
t]))
;; sets the flag box to #f if anything becomes (U)
(d/c (env+ env fs flag)