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
2009-12-09 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
dtest-010.cs
blob
c9ca78901126ac48ad352fe4e136c649d1db68bd
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
// FIXME: Very tricky, I not sure what to do for now
25
//if (A.Test (d, o).TestCall () != 1)
26
// return 1;
27
28
return
0
;
29
}
30
}