summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1959-2.cs
blob: 007414e579a8982f79afe377cf2899cc11a0821d (plain)
1
2
3
4
5
6
7
8
9
10
// CS1959: Type parameter `T' cannot be declared const
// Line: 8

struct S
{
	public void Foo<T> () where T : struct
	{
		const T t = null;
	}
}