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
[mono/tests] Fix out of tree build.
[mono-project.git]
/
mcs
/
tests
/
dtest-010.cs
blob
e38e82d9e480329c43ccaf8a34beedb7dfdbbfb3
1
class
A
2
{
3
public static
T Test
<
T
> (
T a
,
T b
)
4
{
5
return
b
;
6
}
7
}
8
9
class
C
10
{
11
int
TestCall
()
12
{
13
return
1
;
14
}
15
16
public static int
Main
()
17
{
18
dynamic
d
=
0
;
19
object
o
=
new
C
();
20
21
if
(
A
.
Test
<
dynamic
> (
d
,
o
).
TestCall
() !=
1
)
22
return
1
;
23
24
if
(
A
.
Test
(
d
,
o
).
TestCall
() !=
1
)
25
return
2
;
26
27
return
0
;
28
}
29
}