summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0120-3.cs
blob: 9b68b81711952fc400820703206d4b13b308459b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0120: An object reference is required to access non-static member `X.method()'
// Line: 11

class X {

	void method ()
	{
	}
       
	public static int Main (string [] args){
		X.method ();
		return 1;
	}
}