소스 검색

Merge pull request #2402 from mandel59/genphp-syntax-error

fix syntax of generated php
Franco Ponticelli 11 년 전
부모
커밋
44d801d20a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      genphp.ml

+ 2 - 2
genphp.ml

@@ -1377,9 +1377,9 @@ and gen_expr ctx e =
 		| _ ->
 			gen_call ctx ec el);
 	| TArrayDecl el ->
-		spr ctx "new _hx_array(array(";
+		spr ctx "(new _hx_array(array(";
 		concat ctx ", " (gen_value ctx) el;
-		spr ctx "))";
+		spr ctx ")))";
 	| TThrow e ->
 		spr ctx "throw new HException(";
 		gen_value ctx e;