From 1d6df1fbb9a571f020c10d071ff4dba4f65a97f1 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 16 Dec 2003 21:01:24 +0000 Subject: fix checking value is dropped in tuple --- perl_checker.src/parser_helper.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml index a1af279..ffe4abf 100644 --- a/perl_checker.src/parser_helper.ml +++ b/perl_checker.src/parser_helper.ml @@ -1102,7 +1102,8 @@ let mcontext_check_none msg expr esp = | [List l_expr] -> let rec iter = function | e::l_expr, mcontext::l -> - mcontext_check_none_rec (if l = [] then msg else "value is dropped") [e] mcontext + mcontext_check_none_rec (if l = [] then msg else "value is dropped") [e] mcontext ; + iter (l_expr, l) | [], [] -> () | _ -> internal_error "mcontext_check_none" in iter (l_expr, l) -- cgit v1.2.1