summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0176-3.cs
blob: 19df1ba3c8117741b4b8895b9732df65aa85ec88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0176: Static member `A.X' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 12
using System;

class A {
	public static int X;
}

class T {
	static void Main () {
		A T = new A ();
		System.Console.WriteLine (T.X);
	}
}