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
Reenable AOT, it wasn't enabled on the x86 buildbot anyway.
[mcs.git]
/
tests
/
gtest-378.cs
blob
c0245ef67945b3cb1d8ba33cae56f12e67c034bf
1
class
Test
{
2
static object
Foo
(
int
?
i
)
3
{
4
return
(
object
)
i
;
5
}
6
7
static object
FooG
<
T
> (
T
?
i
)
where T
:
struct
8
{
9
return
(
object
)
i
;
10
}
11
12
public static int
Main
()
13
{
14
object
o
=
Foo
(
null
);
15
if
(
o
!=
null
)
16
return
1
;
17
18
o
=
FooG
<
bool
> (
null
);
19
if
(
o
!=
null
)
20
return
2
;
21
22
System
.
Console
.
WriteLine
(
"OK"
);
23
return
0
;
24
}
25
}