dlr bug
[mcs.git] / tests / test-194.cs
blobc61b01dbf5df374e271746b2a475636c4867d93a
1 //
2 // This test is for bug #39108. It checks to see that a params method
3 // is called in its right form.
4 //
5 using System;
7 public class TestParams
9 public static int Main (string[] args)
11 int i;
13 i = Params (null);
14 if (i != 0)
15 return 1;
17 i = Params ((object) null);
18 if (i != 1)
19 return 2;
21 return 0;
24 private static int Params (params object[] ps)
26 if (ps == null)
27 return 0;
28 else
29 return 1;