repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-01-31 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
errors
/
cs0038-2.cs
blob
fe4d734d30b284218b2a4207cedf3ad08c197de0
1
// cs0038-2.cs: Cannot access a nonstatic member of outer type `X' via nested type `X.Nested'
2
// Line: 9
3
public enum
MyEnum { V = 1 }
4
5
class
X
{
6
public
MyEnum MyEnum
;
7
class
Nested
{
8
internal
MyEnum
D
() {
9
return
MyEnum
;
10
}
11
}
12
13
static int
Main
() {
14
Nested n
=
new
Nested
();
15
return
n
.
D
() ==
MyEnum
.
V
?
0
:
1
;
16
}
17
}