summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0188-8.cs
blob: 57dd731ebca3e34379a6940aeb59c456dc9c8c1f (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; } }

	public int text;
}