Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-optional-28.cs
1 using System;
2
3 public class NoTypeOptionalParameters
4 {
5         public static void Lambda (bool asc = true, params Func<string,bool>[] where)
6         {
7         }
8
9         public static void MethodGroup (bool asc = true, params Func<string,bool>[] where)
10         {
11         }
12
13         static bool Foo (string arg)
14         {
15                 return false;
16         }
17
18         bool FooInstance (string arg)
19         {
20                 return false;
21         }
22
23         public static int Main ()
24         {
25                 bool i = false;
26                 Lambda (where: x => true, asc: i);
27                 MethodGroup (where: Foo, asc: i);
28                 MethodGroup (where: new NoTypeOptionalParameters ().FooInstance, asc: false);
29                 return 0;
30         }
31 }