2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / gcs0453-5.cs
blob9a89cffae730195617bb76dce73739ea25ca5082
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
5 using System;
7 public static class Foo
9 public static string Test_2<T> (this T s) where T : struct
11 return null;
15 namespace B
17 public class M
19 public static void Main ()
21 new M().Test_2();