File tree Expand file tree Collapse file tree 4 files changed +20
-16
lines changed Expand file tree Collapse file tree 4 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -401616,11 +401616,12 @@ let emit_external_warnings : iterator=
401616
401616
);
401617
401617
default_iterator.label_declaration self lbl
401618
401618
);
401619
- constructor_declaration = (fun self ({pcd_name} as ctr) ->
401620
- (match pcd_name. txt with
401619
+ constructor_declaration = (fun self ({pcd_name = {txt;loc} } as ctr) ->
401620
+ (match txt with
401621
401621
| "false"
401622
- | "true" ->
401623
- Location.raise_errorf ~loc:pcd_name.loc "true/false can not be redefined "
401622
+ | "true"
401623
+ | "()" ->
401624
+ Location.raise_errorf ~loc:loc "%s can not be redefined " txt
401624
401625
| _ -> ());
401625
401626
default_iterator.constructor_declaration self ctr
401626
401627
);
Original file line number Diff line number Diff line change @@ -401616,11 +401616,12 @@ let emit_external_warnings : iterator=
401616
401616
);
401617
401617
default_iterator.label_declaration self lbl
401618
401618
);
401619
- constructor_declaration = (fun self ({pcd_name} as ctr) ->
401620
- (match pcd_name. txt with
401619
+ constructor_declaration = (fun self ({pcd_name = {txt;loc} } as ctr) ->
401620
+ (match txt with
401621
401621
| "false"
401622
- | "true" ->
401623
- Location.raise_errorf ~loc:pcd_name.loc "true/false can not be redefined "
401622
+ | "true"
401623
+ | "()" ->
401624
+ Location.raise_errorf ~loc:loc "%s can not be redefined " txt
401624
401625
| _ -> ());
401625
401626
default_iterator.constructor_declaration self ctr
401626
401627
);
Original file line number Diff line number Diff line change @@ -15082,11 +15082,12 @@ let emit_external_warnings : iterator=
15082
15082
);
15083
15083
default_iterator.label_declaration self lbl
15084
15084
);
15085
- constructor_declaration = (fun self ({pcd_name} as ctr) ->
15086
- (match pcd_name. txt with
15085
+ constructor_declaration = (fun self ({pcd_name = {txt;loc} } as ctr) ->
15086
+ (match txt with
15087
15087
| "false"
15088
- | "true" ->
15089
- Location.raise_errorf ~loc:pcd_name.loc "true/false can not be redefined "
15088
+ | "true"
15089
+ | "()" ->
15090
+ Location.raise_errorf ~loc:loc "%s can not be redefined " txt
15090
15091
| _ -> ());
15091
15092
default_iterator.constructor_declaration self ctr
15092
15093
);
Original file line number Diff line number Diff line change @@ -297041,11 +297041,12 @@ let emit_external_warnings : iterator=
297041
297041
);
297042
297042
default_iterator.label_declaration self lbl
297043
297043
);
297044
- constructor_declaration = (fun self ({pcd_name} as ctr) ->
297045
- (match pcd_name. txt with
297044
+ constructor_declaration = (fun self ({pcd_name = {txt;loc} } as ctr) ->
297045
+ (match txt with
297046
297046
| "false"
297047
- | "true" ->
297048
- Location.raise_errorf ~loc:pcd_name.loc "true/false can not be redefined "
297047
+ | "true"
297048
+ | "()" ->
297049
+ Location.raise_errorf ~loc:loc "%s can not be redefined " txt
297049
297050
| _ -> ());
297050
297051
default_iterator.constructor_declaration self ctr
297051
297052
);
You can’t perform that action at this time.
0 commit comments