Skip to content

Bugs with polymorphism contraints in let-bindings #5

@mlasson

Description

@mlasson

We have problem with polymorphism constraints:

let[@landmark] f : type t. t -> t = fun x -> x`

will trigger a clean but disapointing error message:

ppx_landmark: this landmark annotation requires a name argument

whereas exlicititly providing the name

let[@landmark "f"] f : type t. t -> t = fun x -> x

generates an unlocated type error after the ppx:

File "none", line 1:
Error: This definition has type 't -> 't which is less general than
't0. 't0 -> 't0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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