Prechádzať zdrojové kódy

fixed issue in TestLocals.testParallelCapture

Franco Ponticelli 14 rokov pred
rodič
commit
c84cf66dba
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  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();