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
update readme (#21797)
[mono-project.git]
/
mcs
/
tests
/
dtest-024.cs
blob
cf4d1f2df8aa8443948653ed624eff30d759af32
1
using
System
;
2
3
// Tests private accessibility for dynamic binder
4
5
class
Test
6
{
7
private delegate int
D
();
8
private int
field
=
9
;
9
10
public static int
Main
()
11
{
12
D del
= () =>
5
;
13
dynamic
d
=
del
;
14
if
(
d
() !=
5
)
15
return
1
;
16
17
d
=
new
Test
();
18
if
(
d
.
field
!=
9
)
19
return
2
;
20
21
return
0
;
22
}
23
}