Skip to content

[bug?] functors are not uncurried #7942

@tx46

Description

@tx46
module type T = { let foo: string } module F = (X: T, Y: T) => { } module C = F({let foo = "bar"}) C.whatever() 

gives error:

Type Errors [E] Line 9, column 0: The module C is a functor, not a structure 

but it would likely be more helpful to error on the line above (could be way separated from C.whatever() in practice) and say that the functor is missing an argument.

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