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

struct S
{
	int x;
	
	S (dynamic d)
	{
		Foo (d);
		x = 44;
	}

	void Foo (int a)
	{
	}
}