소스 검색

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

Dan Korostelev 11 년 전
부모
커밋
534fd95ef8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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