Merge pull request #5082 from kumpera/fix-ro-fs-file-delete
[mono.git] / mcs / errors / cs0315-3.cs
1 // CS0315: The type `int' cannot be used as type parameter `U' in the generic type or method `A<int?>.Test<U>()'. There is no boxing conversion from `int' to `int?'
2 // Line: 19
3
4 class A<T>
5 {
6         public static void Test<U> () where U : T
7         {
8         }
9 }
10
11 class B : A<int?>
12 {
13 }
14
15 class Program
16 {
17         public static void Main ()
18         {
19                 B.Test<int> ();
20         }
21 }