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

cs0176-4.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ebafd4fa5f0bc41a8c08606803a0531c4b9312e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0176: Static member 'X.CONST' cannot be accessed with an instance reference; qualify it with a type name instead
// Line: 12

public class X {
	public const double CONST = 1;
}

public class Y: X {

	void D (X x)
	{
		double d = x.CONST;
	}
}