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
2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git]
/
tests
/
gtest-237.cs
blob
0dce169e6d99111c64e14244930831db30e2cd13
1
using
System
;
2
3
class
Foo
<
T
>
4
{
5
public int
Test
(
T foo
)
6
{
7
return
1
;
8
}
9
10
public int
Test
(
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
(
4L
) !=
1
)
23
return
1
;
24
if
(
foo
.
Test
(
3
) !=
2
)
25
return
2
;
26
if
(
bar
.
Test
(
3
) !=
2
)
27
return
3
;
28
return
0
;
29
}
30
}