summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0403-3.cs
blob: 552e3dfb22d9423123edeecf3efb68bf7f7e8fd8 (plain)
1
2
3
4
5
6
7
8
9
10
// CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead
// Line: 8

class X
{
	public static T CreateMethod<T> ()
	{
		return (T)null;
	}
}