Skip to content

Duplicate property error message should include the name of the model. #877

@tg-msft

Description

@tg-msft

With a spec like:

model Foo { ...Bar, ...Baz }
model Bar { qux: string }
model Baz { qux: string }

It'd be helpful if the error gave the name of the model:

- error duplicate-property: Model already has a property named qux
+ error duplicate-property: Model Foo already has a property named qux 

Playground Link

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions