summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0120-17.cs
blob: ba7c19c59205867ad2c64335a47fad2c21696f72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CS0120: An object reference is required to access non-static member `B.M()'
// Line: 16

using System;

class A
{
	protected A (Action a)
	{
	}
}

class B : A
{
	public B ()
		: base (M)
	{
	}
	
	void M ()
	{
	}
}