summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-optional-16.cs
blob: 84934f7c8e891b273d35cee825fcac079f219bcc (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
using System;

class MainClass
{
	private static int TestParams (object ob = null, params object[] args)
	{
		if (ob != "a")
			return 1;

		if (args.Length != 4)
			return 2;

		foreach (object o in args) {
			Console.WriteLine (o);
		}

		return 0;
	}

	public static int Main ()
	{
		return TestParams ("a", "b", "c", "d", "e");
	}
}