repo.or.cz
/
mono-project
/
dkf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-02-10 Jeffrey Stedfast <fejj@novell.com>
[mono-project/dkf.git]
/
mcs
/
tests
/
gtest-294.cs
blob
d66c6e2f3b5c79df2d4fa318cd0b13604cadce28
1
class
A
{}
2
class
B
:
A
{}
3
4
class
X
5
{
6
public static
A
Test
(
A a
,
B b
)
7
{
8
return
b
??
a
;
9
}
10
11
static int
Main
()
12
{
13
A a
=
new
A
();
14
B b
=
new
B
();
15
16
if
(
Test
(
a
,
b
) !=
b
)
17
return
1
;
18
19
if
(
Test
(
null
,
b
) !=
b
)
20
return
2
;
21
22
if
(
Test
(
a
,
null
) !=
a
)
23
return
3
;
24
25
if
(
Test
(
null
,
null
) !=
null
)
26
return
4
;
27
28
return
0
;
29
30
}
31
}