Merge pull request #3591 from directhex/mono_libdir_fallback
[mono.git] / mcs / errors / cs0312-2.cs
1 // CS0312: The type `E?' cannot be used as type parameter `T' in the generic type or method `C<E>.Foo<T>(T)'. The nullable type `E?' does not satisfy constraint `E'
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? e)
15         {
16                 C<E>.Foo (e);
17         }
18 }