summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0453-6.cs
blob: feaa3a178bb0dff71293505eab7486437610a0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0453: The type `string' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `C<T>'
// Line: 10

public class C<T> where T : struct
{
}

class A
{
	public C<string> Foo ()
	{
	}
}