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
[mono/tests] Fix out of tree build.
[mono-project.git]
/
mcs
/
tests
/
test-null-operator-09.cs
blob
9be052c44f17f30662ff2a25876c89d93929efdf
1
delegate int
D
(
int
t
);
2
3
class
X
4
{
5
D d
=
delegate
{ return 4; }
;
6
7
public static int
Main
()
8
{
9
X x
=
null
;
10
11
var
res
=
x
?.
d
(
55
);
12
if
(
res
!=
null
)
13
return
1
;
14
15
x
?.
d
(
1
);
16
17
return
0
;
18
}
19
}