[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / gtest-optional-28.cs
blobd8eaaa31736cce07c9d2e2108930e94bc4f19fce
1 using System;
3 public class NoTypeOptionalParameters
5 public static void Lambda (bool asc = true, params Func<string,bool>[] where)
9 public static void MethodGroup (bool asc = true, params Func<string,bool>[] where)
13 static bool Foo (string arg)
15 return false;
18 bool FooInstance (string arg)
20 return false;
23 public static int Main ()
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;