Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0176-3.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a5cae490af434ba65366ceb2ad75e1b8d6a3de6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// cs0176-3.cs: 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);
	}
}