summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-optional-32.cs
blob: 4ca3a6097d5d7690ceb66f5590a8c834633a236f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;

abstract class A
{
	public abstract int[] Foo (params int[] args);
}

class B : A
{
	public override int[] Foo (int[] args = null)
	{
		return args;
	}

	static int Main ()
	{
		var b = new B();
		if (b.Foo().Length != 0)
			return 1;

		return 0;
	}
}