Browse Source

fixed issue in TestLocals.testParallelCapture

Franco Ponticelli 14 năm trước cách đây
mục cha
commit
c84cf66dba
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      genphp.ml

+ 4 - 0
genphp.ml

@@ -1180,8 +1180,12 @@ and gen_expr ctx e =
 		in
 		List.iter build el;
 
+		if ctx.in_loop then begin
+			unset_locals ctx old_l;
+		end;
 		bend();
 		newline ctx;
+		
 		cb();
 		print ctx "}";
 		b();