Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Inherited interface 'interface1' causes a cycle in the interface hierarchy of 'interface2'
The inheritance list for an interface includes a direct or indirect reference to itself. An interface cannot inherit from itself.
The following sample generates CS0529:
// CS0529.cs
namespace x
{
public interface a
{
}
public interface b : a, c
{
}
public interface c : b // CS0529, b inherits from c
{
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.