Skip to content

Improve error when record is used like a ctor #1933

@forki

Description

@forki
[<Struct;CLIMutable>]
type StructRecord =
    {
        X: float
        Y: float
    }

let x = StructRecord ()

image

The message is misleading. There is actually a type StructRecord, but we can't call the ctor. So we should improve the error.

references #1103

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