Skip to content

Polymorphic variant tags need not be capitalized, unlike what the manual says #12047

Description

@OlivierNicole

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions