summaryrefslogtreecommitdiff
path: root/parsing/parser.mly
diff options
context:
space:
mode:
Diffstat (limited to 'parsing/parser.mly')
-rw-r--r--parsing/parser.mly3
1 files changed, 2 insertions, 1 deletions
diff --git a/parsing/parser.mly b/parsing/parser.mly
index 577595e348..58c8a42bdd 100644
--- a/parsing/parser.mly
+++ b/parsing/parser.mly
@@ -1229,7 +1229,8 @@ class_sig_field:
{ mkctf (Pctf_inherit $3) ~attrs:($2@$4) ~docs:(symbol_docs ()) }
| VAL attributes value_type post_item_attributes
{ mkctf (Pctf_val $3) ~attrs:($2@$4) ~docs:(symbol_docs ()) }
- | METHOD attributes private_virtual_flags label COLON poly_type post_item_attributes
+ | METHOD attributes private_virtual_flags label COLON poly_type
+ post_item_attributes
{
let (p, v) = $3 in
mkctf (Pctf_method ($4, p, v, $6)) ~attrs:($2@$7) ~docs:(symbol_docs ())