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
Take stars out of types where they make more sense.
[mono-project.git]
/
mcs
/
tests
/
gtest-621.cs
blob
6444cb7918ed1d9497388cba8fe6c9bf5ad10a5b
1
using
System
;
2
3
class
X
4
{
5
static int
Main
()
6
{
7
int
?
intArg
=
1
;
8
long
?
longArg
=
2
;
9
10
var
g
=
intArg
??
longArg
;
11
Console
.
WriteLine
(
g
);
12
if
(
g
!=
1
)
13
return
1
;
14
15
intArg
=
null
;
16
g
=
intArg
??
longArg
;
17
Console
.
WriteLine
(
g
);
18
if
(
g
!=
2
)
19
return
2
;
20
21
longArg
=
null
;
22
g
=
intArg
??
longArg
;
23
Console
.
WriteLine
(
g
);
24
if
(
g
!=
null
)
25
return
3
;
26
27
return
0
;
28
}
29
30
const
Action cf
=
null
;
31
void
Foo
(
Action f
)
32
{
33
var
x
=
f
??
cf
;
34
}
35
}