namespace First
{
public class Stuff
{
protected internal class Nested{}
}
}
In second solution (which refers to the first)
namespace Second
{
public class Stuff : First.Stuff
{
// error CS0060: Inconsistent accessibility: base class 'First.Stuff.Nested' is less accessible than class 'Second.Stuff.Nested'
protected internal new class Nested : First.Stuff.Nested
{
}
}
}
ReSharper currently does not show this error.
Description
In first solution:
namespace First
{
public class Stuff
{
protected internal class Nested{}
}
}
In second solution (which refers to the first)
namespace Second
{
public class Stuff : First.Stuff
{
// error CS0060: Inconsistent accessibility: base class 'First.Stuff.Nested' is less accessible than class 'Second.Stuff.Nested'
protected internal new class Nested : First.Stuff.Nested
{
}
}
}