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
publicinterfaceIFoo{voidA();}publicclassFoo:IFoo{// public static void A() { /* Do stuff */ } <-- this line}
At Foo declaration, IDE should correctly show two suggestions to implement IFoo:
Now uncomment the commented line, the options disappears when the second option should still be valid:
Interestingly, if IFoo has another method like void B();, the suggestions are still present. The 2nd option is actually helpful.
Diagnostic Id:
Expected Behavior:
The suggestions to implement an interface should remain.
Actual Behavior:
The suggestion disappears even though the class does not actually implement the interface yet.
The text was updated successfully, but these errors were encountered:
datvm
changed the title
Implement interface IDE options disappear when the class has a static member with the same name
"Implement interface" IDE options disappear when the class has a static member with the same name
May 10, 2024
Version Used: .NET 8.0.204
Steps to Reproduce:
At
Foo
declaration, IDE should correctly show two suggestions to implementIFoo
:Now uncomment the commented line, the options disappears when the second option should still be valid:
IFoo
has another method likevoid B();
, the suggestions are still present. The 2nd option is actually helpful.Diagnostic Id:
Expected Behavior:
The suggestions to implement an interface should remain.
Actual Behavior:
The suggestion disappears even though the class does not actually implement the interface yet.
The text was updated successfully, but these errors were encountered: