Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0572.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7f3047e0d7214364cd0b82360d0ffa7e2f4941cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// cs0572: Can't reference type `Foo' through an expression; try `Y.Foo' instead.
// Line: 13
using System;

class X
{
	private static Y y;

	public static void Main ()
	{
		y = new Y ();

		object o = y.Foo.Hello;
	}
}

class Y
{
	public enum Foo { Hello, World };

	public void Test (Foo foo)
	{
		Console.WriteLine (foo);
	}
}