repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git]
/
tests
/
gtest-419.cs
blob
386b17df8baf6c210b82833046a49b6318aed819
1
using
System
;
2
3
class
Program
4
{
5
static int
Main
()
6
{
7
int
?
i
= ((
int
?) -
4
);
8
int
?
i2
= (
int
?) +
4
;
9
object
o
= (
object
) (
int
?)
42
;
10
11
return
(
bool
)
Test
(
"True"
) ==
true
?
0
:
1
;
12
}
13
14
static object
Test
(
string
s
)
15
{
16
return
(!
string
.
IsNullOrEmpty
(
s
)) ? (
bool
?)
bool
.
Parse
(
s
) :
null
;
17
}
18
}