summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0188-8.cs
blob: d5e617998962a2bbbf811dfa36c03188fda5bc6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0188: The `this' object cannot be used before all of its fields are assigned to
// Line: 8

struct Sample
{
	public Sample (int arg)
	{
		text = this.Prop;
	}
	
	int Prop { get { return 1; } }

	int text;
}