class Base<T>
{
public class Nested { }
}
class Derived : Base<Derived.Nested> // error CS0426: The type name 'Green' does not exist in the type 'Yellow'
{ }
Complier message is not quite clear here, but this code definitely should not compile because of circular dependency.
Description
class Base<T>
{
public class Nested { }
}
class Derived : Base<Derived.Nested> // error CS0426: The type name 'Green' does not exist in the type 'Yellow'
{ }
Complier message is not quite clear here, but this code definitely should not compile because of circular dependency.
class Base<T>
{
public class Nested { }
}
class Derived : Base<Derived.Nested> // error CS0426: The type name 'Nested' does not exist in the type 'Derived'
{ }
class Base<T>
{
public class Nested { }
}
class Derived : Base<Derived.Nested> // error CS0426: The type name 'Nested' does not exist in the type 'Derived'
{ }
class Base<T> { public class Nested { } } class Derived : Base<Derived.Nested> // error CS0426: The type name 'Nested' does not exist in the type 'Derived' { }