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
Merge pull request #1821 from iainx/replace-getline
[mono-project.git]
/
mcs
/
errors
/
cs0038-3.cs
blob
45d88389143344c54341d226e89fa8cb8a3ef632
1
// CS0038: Cannot access a nonstatic member of outer type `A' via nested type `B.C'
2
// Line: 15
3
4
public class
A
{
5
public int
Foo { get { return 1; }
}
6
}
7
8
public class
B
:
A
{
9
public static void
Main
()
10
{
11
}
12
13
public class
C
{
14
public void
Baz
()
15
{
16
int
x
=
Foo
;
17
}
18
}
19
}