summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0453-5.cs
blob: 9a89cffae730195617bb76dce73739ea25ca5082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// CS0453: The type `B.M' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Foo.Test_2<T>(this T)'
// Line: 20


using System;

public static class Foo
{
	public static string Test_2<T> (this T s) where T : struct
	{
		return null;
	}
}

namespace B
{
	public class M
	{
		public static void Main ()
		{
			new M().Test_2();
		}
	}
}