Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git] / mcs / tests / dtest-044.cs
blobbc4eca9083754683acb3667c1348e97b360a7265
1 using System;
2 using System.Collections.Generic;
4 class C
6 public static int Test<T, U>(T a, IComparable<U> b) where T: IComparable<U>
8 return 1;
11 public static int Test_2<T>(IList<T> a, T b)
13 return 2;
16 public static int Main ()
18 dynamic d = 1;
19 if (Test (1, d) != 1)
20 return 1;
22 if (Test (d, 1) != 1)
23 return 2;
25 if (Test_2 (new int [0], d) != 2)
26 return 3;
28 return 0;