瀏覽代碼

improvements for issue 735

Franco Ponticelli 13 年之前
父節點
當前提交
cb39e1a2c9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genphp.ml

+ 1 - 1
genphp.ml

@@ -953,7 +953,7 @@ and gen_expr ctx e =
 		(match op with
 		| Ast.OpAssign ->
 			(match e1.eexpr with
-			| TArray(te1, te2) when (match te1.eexpr with TCall _ -> true | _ -> false) ->
+			| TArray(te1, te2) when (match te1.eexpr with | TCall _ | TParenthesis _ -> true | _ -> false) ->
 				spr ctx "_hx_array_assign(";
 				gen_value ctx te1;
 				spr ctx ", ";