Nicolas Cannasse %!s(int64=13) %!d(string=hai) anos
pai
achega
9bef3ceb5c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      parser.ml

+ 1 - 1
parser.ml

@@ -395,7 +395,7 @@ and parse_type_path_or_const = parser
 	(* we can't allow (expr) here *)
 	| [< t = parse_complex_type >] -> TPType t
 	| [< '(Const c,p) >] -> TPExpr (EConst c,p)
-	| [< e = expr >] -> TPExpr e
+	| [< e = expr >] -> TPExpr (match fst e with EBlock [e] -> e | _ -> e)
 
 and parse_complex_type_next t = parser
 	| [< '(Arrow,_); t2 = parse_complex_type >] ->