summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-optional-12.cs
blob: f08e34bd57412a968788bb6692e65580a4f4c378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;

public class C
{
	static int M (string s = "s", int k = 0, params int[] args)
	{
		return args[1];
	}

	public static int Main ()
	{
		if (M (args: new int[] { 10, 20, 30 }) != 20)
			return 1;

		return 0;
	}
}