Merge pull request #4202 from marek-safar/compression
[mono-project.git] / mcs / errors / cs0312-2.cs
blobbc579b6f36ec9ff05133341dfa5aa7b35d6d851c
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
4 enum E
8 class C<U>
10 static void Foo<T> (T value) where T : U
14 static void Test (E? e)
16 C<E>.Foo (e);