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
Merge pull request #4202 from marek-safar/compression
[mono-project.git]
/
mcs
/
tests
/
dtest-029.cs
blob
3c2af4b0dfeb16ec6b168b9bbacf5a9efb5cd751
1
class
C
2
{
3
static bool
Test
<
T
,
U
>(
T t
,
U u
)
4
{
5
dynamic
d1
=
1
;
6
dynamic
d2
=
"a"
;
7
return
d1
==
t
&&
d2
==
u
;
8
}
9
10
static bool
Test2
(
int
i
)
11
{
12
dynamic
d1
=
1
;
13
return
d1
==
i
;
14
}
15
16
public static int
Main
()
17
{
18
if
(!
Test
(
1
,
"a"
))
19
return
1
;
20
21
if
(
Test
(
2
,
"a"
))
22
return
2
;
23
24
if
(
Test
(
1
,
"----"
))
25
return
3
;
26
27
if
(!
Test2
(
1
))
28
return
4
;
29
30
if
(
Test2
(
2
))
31
return
5
;
32
33
return
0
;
34
}
35
}