repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "doh, miscopied file names."
[mono-project.git]
/
mcs
/
errors
/
cs0572.cs
blob
01e7a62691f81496096b44a09f8fb939acafd05d
1
// CS0572: `Foo': cannot reference a type 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
}