We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ecd49e commit b5d9109Copy full SHA for b5d9109
vendor/ocaml/typing/env.ml
@@ -1343,8 +1343,8 @@ and check_value_name name loc =
1343
(* Note: we could also check here general validity of the
1344
identifier, to protect against bad identifiers forged by -pp or
1345
-ppx preprocessors. *)
1346
-
1347
- if String.length name > 0 && (name.[0] = '#') then
+ if !Clflags.bs_only && name = "|." then raise (Error(Illegal_value_name(loc, name)))
+ else if String.length name > 0 && (name.[0] = '#') then
1348
for i = 1 to String.length name - 1 do
1349
if name.[i] = '#' then
1350
raise (Error(Illegal_value_name(loc, name)))
0 commit comments