Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs0453-5.cs
1 // 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)'
2 // Line: 20
3
4
5 using System;
6
7 public static class Foo
8 {
9         public static string Test_2<T> (this T s) where T : struct
10         {
11                 return null;
12         }
13 }
14
15 namespace B
16 {
17         public class M
18         {
19                 public static void Main ()
20                 {
21                         new M().Test_2();
22                 }
23         }
24 }