summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0190-2.cs
blob: ca9733de0fa48719fd9a651612f2e10bc21e116b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// CS0190: The __arglist construct is valid only within a variable argument method
// Line: 11

public class Test
{
	public static void Foo (__arglist)
	{
		System.RuntimeArgumentHandle o;
		{
			System.Action a = delegate () {
				o = __arglist; 
			};
			
			a ();
		}
	}
	
	public static void Main ()
	{
		Foo (__arglist ());
	}
}