projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
errors
/
cs0572.cs
1
// cs0572: Can't reference type `Foo' through an expression; try `Y.Foo' instead.
2
// Line: 13
3
using System;
4
5
class X
6
{
7
private static Y y;
8
9
public static void Main ()
10
{
11
y = new Y ();
12
13
object o = y.Foo.Hello;
14
}
15
}
16
17
class Y
18
{
19
public enum Foo { Hello, World };
20
21
public void Test (Foo foo)
22
{
23
Console.WriteLine (foo);
24
}
25
}