summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0572-3.cs
blob: 675fd7dd6b6e4379525651a2767dd57658a3eb43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS0572: `Inner': cannot reference a type through an expression. Consider using `Outer.Inner' instead
// Line: 18

public class Outer
{
	public enum Inner
	{
		ONE,
		TWO
	}
}

public class C
{
	public static bool Test ()
	{
		Outer outer = null;
		return 0 == outer.Inner.ONE;
	}
}