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 #1861 from saper/home-override
[mono-project.git]
/
mcs
/
tests
/
test-null-operator-07.cs
blob
ec9ced5ea04ff490d19ba5e77ba37b03a466206c
1
using
System
;
2
3
public static class
C
4
{
5
static int
Main
()
6
{
7
int
[]
a
=
null
;
8
var
r
=
a
?.
EM
().
EM
().
EM
() ??
"N"
;
9
if
(
r
!=
"N"
)
10
return
1
;
11
12
a
?.
EM
().
EM
();
13
14
return
0
;
15
}
16
17
static string
EM
(
this object
arg
)
18
{
19
if
(
arg
==
null
)
20
throw new
ApplicationException
();
21
22
return
""
;
23
}
24
}