Skip to content

Type annotation in dependent tuple is ignored when in a function argument #4003

@paracetamolo

Description

@paracetamolo

When writing a function that takes a dependent tuple as argument, if the argument is decorated with a type annotation, it is ignored.

module Bug_dtuple

type d = r:nat & n:nat{n>r}

let id_weird : d -> d = fun (|r, (n:string)|) -> (|r,n|)

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