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

class B
{
	public B (object o)
	{
	}
}

class C : B
{
	int i;
	
	public C ()
		: base (i)
	{
	}
}