Skip to content

Unresolved name error in 'inherit' member reported multiple times #16432

@auduchinok

Description

@auduchinok

Consider this code with a single undefined name error:

type T() =
    inherit Foo()

Both FCS and fsc produce three errors for this one error in code:

Program.fs(4,13): Error FS0039 : The type 'Foo' is not defined.
Program.fs(4,13): Error FS0039 : The type 'Foo' is not defined.
Program.fs(4,13): Error FS0039 : The type 'Foo' is not defined.

This is bad for two reasons:

  • the user sees error duplicates
  • it shows that there's likely a duplicated analysis somewhere, which affects perfomance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Diagnosticsmistakes and possible improvements to diagnosticsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No fields configured for Bug.

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions