Skip to content

This valid snippet produce a non-sensical error message #2000

@Tim-ats-d

Description

@Tim-ats-d

This following snippets produce this cryptic error message when hovering:

let a : type b. 'a as b list = []
 (* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ *)
This definition has type bool which is less general than 'a. 'a

Even it's syntactically perfectly valid OCaml.

See #1118.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions