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 #1525 from akoeplinger/fix-dynamicdata-test
[mono-project.git]
/
mcs
/
errors
/
cs0122-30.cs
blob
aa461653646b325289f7531cd881f5d8e6e88c34
1
// CS0122: `MainClass.Nested.Delegate()' is inaccessible due to its protection level
2
// Line: 18
3
4
delegate int
TestDelegate
();
5
6
public class
MainClass
7
{
8
class
Nested
9
{
10
static int
Delegate
()
11
{
12
return
0
;
13
}
14
}
15
16
public static void
Main
()
17
{
18
TestDelegate delegateInstance
=
new
TestDelegate
(
Nested
.
Delegate
);
19
}
20
}
21