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-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
cs0038-1.cs
blob
9508922bb330b037616ef3071744e0ced4ab4c13
1
// cs0038-1.cs: Cannot access a nonstatic member of outer type `A' via nested type `C.N'
2
// Line: 12
3
4
class
A
{
5
protected int
n
=
0
;
6
}
7
8
class
B
:
A { }
9
10
class
C
:
B
{
11
class
N
{
12
internal int
foo
()
{ return n; }
13
}
14
public static int
Main
() {
15
N a
=
new
N
();
16
return
a
.
foo
();
17
}
18
}