summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0188-10.cs
blob: eadb0a8776014d50c89234ff124abd9ba5c21ca3 (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
{
	public int x;
	
	S (dynamic d)
	{
		Foo (d);
		x = 44;
	}

	void Foo (int a)
	{
	}
}