The manual at the time I’m writing this states that polymorphic variant tags are of the form `tag-name, where tag-name is defined as:
|
tag-name: |
|
capitalized-ident |
|
; |
However, tags starting with a lowercase letter are accepted as well:
OCaml version 5.0.0
Enter #help;; for help.
# let x = `test;;
val x : [> `test ] = `test
The manual at the time I’m writing this states that polymorphic variant tags are of the form
`tag-name, wheretag-nameis defined as:ocaml/manual/src/refman/names.etex
Lines 51 to 53 in 851b5b9
However, tags starting with a lowercase letter are accepted as well: