Fix another type bug I introduced yesterday; found through wondrous logging technology.

This commit is contained in:
Graydon Hoare 2010-06-30 15:26:34 -07:00
parent 335053eb68
commit 4765d1e358

View File

@ -522,7 +522,7 @@ let process_crate (cx:ctxt) (crate:Ast.crate) : unit =
let rec unify ty =
match ty with
Ast.TY_tup (elem_tys:Ast.ty array) ->
if (Array.length elem_tys) <> (Array.length tvs)
if (Array.length elem_tys) < (Array.length tvs)
then fail ()
else
let check_elem i tv =