浏览代码

[macro] Fixed recursion on TypedExprTools.map

Cauê Waneck 11 年之前
父节点
当前提交
b24e224067
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/haxe/macro/TypedExprTools.hx

+ 1 - 1
std/haxe/macro/TypedExprTools.hx

@@ -53,7 +53,7 @@ class TypedExprTools {
 			case TThrow(e1): with(e, TThrow(f(e1)));
 			case TEnumParameter(e1, ef, i): with(e, TEnumParameter(f(e1), ef, i));
 			case TField(e1, fa): with(e, TField(f(e1), fa));
-			case TParenthesis(e1): with(e, TParenthesis(e1));
+			case TParenthesis(e1): with(e, TParenthesis(f(e1)));
 			case TUnop(op, pre, e1): with(e, TUnop(op, pre, f(e1)));
 			case TArrayDecl(el): with(e, TArrayDecl(el.map(f)));
 			case TNew(t, pl, el): with(e, TNew(t, pl, el.map(f)));