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

public struct Test
{
	internal int x;

	public Test (int x)
	{
		X = x;
	}

	public int X
	{
		get { return x; }
		set { x = value; }
	}
}