[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / gtest-optional-32.cs
blob4ca3a6097d5d7690ceb66f5590a8c834633a236f
1 using System;
3 abstract class A
5 public abstract int[] Foo (params int[] args);
8 class B : A
10 public override int[] Foo (int[] args = null)
12 return args;
15 static int Main ()
17 var b = new B();
18 if (b.Foo().Length != 0)
19 return 1;
21 return 0;