summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0452-11.cs
blob: f0681aae7e7fc3a866b61f71e56d42c0b78f1bb9 (plain)
1
2
3
4
5
6
7
8
9
10
// CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `Program.M<T>(T, T)'
// Line: 8

class Program
{
	public static void M<T> (T item1, T item2 = null) where T : class
	{
		M (1);
	}
}