Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / dtest-044.cs
1 using System;
2 using System.Collections.Generic;
3
4 class C
5 {
6         public static int Test<T, U>(T a, IComparable<U> b) where T: IComparable<U>
7         {
8                 return 1;
9         }
10
11         public static int Test_2<T>(IList<T> a, T b)
12         {
13                 return 2;
14         }
15         
16         public static int Main ()
17         {
18                 dynamic d = 1;
19                 if (Test (1, d) != 1)
20                         return 1;
21                 
22                 if (Test (d, 1) != 1)
23                         return 2;
24                 
25                 if (Test_2 (new int [0], d) != 2)
26                         return 3;
27                 
28                 return 0;
29         }
30 }