a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
26 lines
344 B
C#
26 lines
344 B
C#
// CS0572: `Foo': cannot reference a type through an expression. Consider using `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);
|
|
}
|
|
}
|