update readme (#21797)
[mono-project.git] / mcs / errors / cs0312-3.cs
blob92576978c2c2a70b5c09dd41f8caf8c556865181
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
4 enum E
8 class C<U>
10 static void Foo<T> (T value) where T : U
14 static void Test (E? s)
16 C<System.Enum>.Foo (s);