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

cs0236.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6908792fb22e17aebfb2c256689ba24579d909c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//cs0236: A field initializer cannot reference the non-static field, method or property `X.Foo'.

class X
{
	int Foo {
		get {
			return 9;
		}
	}

	long Bar = Foo;

	static void Main () {
	}
}