summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0171-4.cs
blob: 8f909cedfb6ed6b73c2522e2d1786b66016bc8ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0171: Field `S<TKey>.key' must be fully assigned before control leaves the constructor
// Line: 13

public struct S<TKey> {
	internal TKey key;

	public TKey Key {
		get { return key; }
		private set { key = value; }
	}
		
	public S (TKey key)
	{
		Key = key;
	}
}