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: 5d29a695c28c324e50beaea627bad56bd357c265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// cs0236.cs: A field initializer cannot reference the nonstatic field, method, or property `X.Foo'
// Line: 12

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

	long Bar = Foo;

	static void Main () {
	}
}