blob: c61b01dbf5df374e271746b2a475636c4867d93a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
//
// This test is for bug #39108. It checks to see that a params method
// is called in its right form.
//
using System;
public class TestParams
{
public static int Main (string[] args)
{
int i;
i = Params (null);
if (i != 0)
return 1;
i = Params ((object) null);
if (i != 1)
return 2;
return 0;
}
private static int Params (params object[] ps)
{
if (ps == null)
return 0;
else
return 1;
}
}
|