浏览代码

fixed issue #631

Nicolas Cannasse 13 年之前
父节点
当前提交
81c46864c6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      parser.ml

+ 1 - 1
parser.ml

@@ -392,7 +392,7 @@ and type_name = parser
 		error (Custom "Type name should start with an uppercase letter") p
 		error (Custom "Type name should start with an uppercase letter") p
 
 
 and parse_type_path_or_const = parser
 and parse_type_path_or_const = parser
-	| [< '(POpen,_); e = expr; '(PClose,_) >] -> TPExpr e
+	(* we can't allow (expr) here *)
 	| [< t = parse_complex_type >] -> TPType t
 	| [< t = parse_complex_type >] -> TPType t
 	| [< '(Const c,p) >] -> TPExpr (EConst c,p)
 	| [< '(Const c,p) >] -> TPExpr (EConst c,p)
 	| [< e = expr >] -> TPExpr e
 	| [< e = expr >] -> TPExpr e