summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0170-3.cs
blob: a6f7109fb9e6793f603f64af2cdfbad4e2fdcc25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CS0170: Use of possibly unassigned field `p'
// Line: 21

using System;

struct S2
{
	public int p;
}

struct S
{
	public S2 s2;
}

class C
{
    static void Main()
    {
		S s;
		Console.WriteLine (s.s2.p);
    }
}