소스 검색

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 ", ";