Version Used: Dotnet 6.0.100
Steps to Reproduce:
- Create a file with this content:
public class Test : Test.IInner.IOuter {
public interface IInner : Other {
public interface IOuter
{
}
}
}
public interface Other
{
}
- Try to compile it
Expected Behavior:
Compiles without error
Actual Behavior:
CS0146 Circular base type dependency.
Further Info
This seems conditional on the first inner interface inheriting from something else. This happens neither if the double nested interface inherits nor if there is no inheritance.
If the outer type implements just the nested interface that inherits everything is fine as well.
Version Used: Dotnet 6.0.100
Steps to Reproduce:
Expected Behavior:
Compiles without error
Actual Behavior:
CS0146 Circular base type dependency.
Further Info
This seems conditional on the first inner interface inheriting from something else. This happens neither if the double nested interface inherits nor if there is no inheritance.
If the outer type implements just the nested interface that inherits everything is fine as well.