Skip to content

Wrong compiler error when a record field is used after dot on a variable of unrelated type #3576

@vasily-kirichenko

Description

@vasily-kirichenko

image

The error message is quite interesting, it does not say that x does not have Foo property/method, it says it's not a MyRec

image

which is misleading for my taste.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions