Forráskód Böngészése

[php] we now have real empty blocks, so generate them (see 42be1b96bf7353e3194dc065cd1361a31ee4bdb1)

Dan Korostelev 11 éve
szülő
commit
534fd95ef8
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      genphp.ml

+ 1 - 1
genphp.ml

@@ -1272,7 +1272,7 @@ and gen_expr ctx e =
 	| TContinue ->
 		if ctx.in_loop then spr ctx "continue" else print ctx "continue %d" ctx.nested_loops
 	| TBlock [] ->
-		spr ctx ""
+		spr ctx "{}"
 	| TBlock el ->
 		let old_l = ctx.inv_locals in
 		let b = save_locals ctx in