-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Closed
Copy link
Labels
Area-IDEBugFeature - StaticAbstractMembersInInterfacesIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringsBuilt-in analyzers, fixes, and refactorings
Milestone
Description
interface I11<T11> where T11 : I11<T11>
{
static abstract implicit operator long(T11 x);
static abstract explicit operator int(T11 x);
}
class C11 : I11<C11>
{
}
Use "Implement interface" fixer for C11 with implement explicitly option.
Observed operators are implemented implicitly:
class C11 : I11<C11>
{
public static implicit operator long(C11 x)
{
throw new NotImplementedException();
}
public static explicit operator int(C11 x)
{
throw new NotImplementedException();
}
}
Expected explicit implementation:
class C11 : I11<C11>
{
static implicit I11<C11>.operator long(C11 x)
{
throw new NotImplementedException();
}
static explicit I11<C11>.operator int(C11 x)
{
throw new NotImplementedException();
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-IDEBugFeature - StaticAbstractMembersInInterfacesIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringsBuilt-in analyzers, fixes, and refactorings