소스 검색

fixed iterator used as a left operand

Nicolas Cannasse 13 년 전
부모
커밋
8642e77b37
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      genjs.ml

+ 5 - 0
genjs.ml

@@ -425,6 +425,11 @@ and gen_expr ctx e =
 		spr ctx "[";
 		gen_value ctx e2;
 		spr ctx "]";
+	| TBinop (op,{ eexpr = TField (x,"iterator") },e2) ->
+		gen_value ctx x;
+		spr ctx (field "iterator");
+		print ctx " %s " (Ast.s_binop op);
+		gen_value ctx e2;		
 	| TBinop (op,e1,e2) ->
 		gen_value ctx e1;
 		print ctx " %s " (Ast.s_binop op);