소스 검색

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
 
 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
 	| [< '(Const c,p) >] -> TPExpr (EConst c,p)
 	| [< e = expr >] -> TPExpr e