Merge pull request #5636 from BrzVlad/fix-xmm-scan
[mono.git] / mcs / errors / cs0190-2.cs
1 // CS0190: The __arglist construct is valid only within a variable argument method
2 // Line: 11
3
4 public class Test
5 {
6         public static void Foo (__arglist)
7         {
8                 System.RuntimeArgumentHandle o;
9                 {
10                         System.Action a = delegate () {
11                                 o = __arglist; 
12                         };
13                         
14                         a ();
15                 }
16         }
17         
18         public static void Main ()
19         {
20                 Foo (__arglist ());
21         }
22 }