Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-902.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 271035fddbe94b4ba087410709b7ce212e279235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
abstract class A
{
	public virtual void M (params B[] b)
	{
	}
}

class B : A
{
	public override void M (B[] b2)
	{
	}
}

class Test2
{
	public static void Main()
	{
		B b = new B();
		A a = b;
		a.M (b, b);
		b.M (b, b, b);
	}
}