Browse Source

support reification for short structure notation fields

Dan Korostelev 5 years ago
parent
commit
6b2ae5eda5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/syntax/grammar.mly

+ 1 - 1
src/syntax/grammar.mly

@@ -783,7 +783,7 @@ and parse_function_type_next tl p1 = parser
 and parse_type_anonymous s =
 	let p0 = popt question_mark s in
 	match s with parser
-	| [< name, p1 = ident; t = parse_type_hint; s >] ->
+	| [< name, p1 = dollar_ident; t = parse_type_hint; s >] ->
 		let opt,p1 = match p0 with
 			| Some p -> true,punion p p1
 			| None -> false,p1