fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Unresolved name error in 'inherit' member reported multiple times

Open auduchinok opened this issue 2 years ago • 1 comments

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

auduchinok avatar Dec 13 '23 17:12 auduchinok

This is quite annoying and verbose to have 3X most of the diagnostics. Imagine having 10 errors that became 30 :(

edgarfgp avatar Apr 19 '24 17:04 edgarfgp