summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0308-6.cs
blob: 81b4ac31e6fd64279b553b4ca0b8a5c093ec78d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS0308: The non-generic type `BaseGeneric<T>.InnerDerived' cannot be used with the type arguments
// Line: 19

class BaseGeneric<T>
{
	public class InnerDerived
	{
	}
}

class BaseConcrete : BaseGeneric<string>
{
}

class Program
{
    static void Main ()
    {
        new BaseConcrete.InnerDerived<int>();
    }
}