Pārlūkot izejas kodu

fixed issue in TestLocals.testParallelCapture

Franco Ponticelli 14 gadi atpakaļ
vecāks
revīzija
c84cf66dba
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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();