File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3529,10 +3529,12 @@ pattern_no_exn:
3529
3529
{ let loc = $ loc(label) in
3530
3530
Some label, mkpatvar ~loc label }
3531
3531
| TILDE LPAREN label = LIDENT COLON cty = core_type RPAREN % prec COMMA
3532
- { let loc = $ loc(label) in
3533
- let pat = mkpatvar ~loc label in
3534
- Some label, mkpat_opt_constraint ~loc pat (Some cty) }
3532
+ { let lbl_loc = $ loc(label) in
3533
+ let pat_loc = $ startpos($ 2 ), $ endpos in
3534
+ let pat = mkpatvar ~loc: lbl_loc label in
3535
+ Some label, mkpat_opt_constraint ~loc: pat_loc pat (Some cty) }
3535
3536
3537
+ (* If changing this, don't forget to change its copy just above. *)
3536
3538
% inline labeled_tuple_pat_element_noprec(self):
3537
3539
| self { None , $ 1 }
3538
3540
| LABEL simple_pattern
You can’t perform that action at this time.
0 commit comments