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

class App
{
	Test a = new Test ();

	public Test Test
	{
		get { return a; }
	}

	public static void Main (string[] args)
	{
		Test.Run ();
	}
}

class Test
{
	public void Run () { }
}