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
2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git]
/
mcs
/
tests
/
gtest-236.cs
blob
cce3049305d10cef90d3c6fe9c484de73ec2063f
1
using
System
;
2
3
class
Foo
<
T
>
4
{
5
public int
Test
(
Foo
<
T
>
foo
)
6
{
7
return
1
;
8
}
9
10
public int
Test
(
Foo
<
int
>
foo
)
11
{
12
return
2
;
13
}
14
}
15
16
class
X
17
{
18
static int
Main
()
19
{
20
Foo
<
long
>
foo
=
new
Foo
<
long
> ();
21
Foo
<
int
>
bar
=
new
Foo
<
int
> ();
22
if
(
foo
.
Test
(
foo
) !=
1
)
23
return
1
;
24
if
(
foo
.
Test
(
bar
) !=
2
)
25
return
2
;
26
if
(
bar
.
Test
(
bar
) !=
2
)
27
return
3
;
28
return
0
;
29
}
30
}