Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0312-3.cs
1 // CS0312: The type `E?' cannot be used as type parameter `T' in the generic type or method `C<System.Enum>.Foo<T>(T)'. The nullable type `E?' does not satisfy constraint `System.Enum'
2 // Line: 16
3
4 enum E
5 {
6 }
7
8 class C<U>
9 {
10         static void Foo<T> (T value) where T : U
11         {
12         }
13
14         static void Test (E? s)
15         {
16                 C<System.Enum>.Foo (s);
17         }
18 }