You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error FS0366: No implementation was given for 'abstract member IFoo.Bar : TextReader -> 't'. Note that all interface members must be implemented and listed under an appropriate 'interface' declaration, e.g. 'interface ... with member ...'.
Why
Overrides generally come in more than a bunch, it is tedious to fix one and wait for the compiler to list the next one, one by one...
How
I propose that instead, we handle those cases:
single override is missing: behaviour unchanged
more than one and less than ten overrides missing: list missing overrides exhaustively
error FS0366: No implementation was given for those members:
'abstract member IFoo.Bar : TextReader -> 't'
'abstract member IFoo.Baz : TextReader -> 't'
Note that all interface members must be implemented and listed under an appropriate 'interface' declaration, e.g. 'interface ... with member ...'.
more than ten overrides missing: list the ten first missing overrides
error FS0366: No implementation was given for those members (some results omitted):
'abstract member IFoo.Bar : TextReader -> 't'
'abstract member IFoo.Baz : TextReader -> 't'
....
Note that all interface members must be implemented and listed under an appropriate 'interface' declaration, e.g. 'interface ... with member ...'.
Please let me know if there are any adjustments / proposals to make this better, I'm looking at CheckDispatchSlotsAreImplemented which I'll cleanup and prepare to support better logic.
The text was updated successfully, but these errors were encountered:
related: #1103, #4967
What
this currently gives:
Why
Overrides generally come in more than a bunch, it is tedious to fix one and wait for the compiler to list the next one, one by one...
How
I propose that instead, we handle those cases:
single override is missing: behaviour unchanged
more than one and less than ten overrides missing: list missing overrides exhaustively
more than ten overrides missing: list the ten first missing overrides
Please let me know if there are any adjustments / proposals to make this better, I'm looking at
CheckDispatchSlotsAreImplemented
which I'll cleanup and prepare to support better logic.The text was updated successfully, but these errors were encountered: