projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* Control.cs: Don't do anything in WmShowWindow if the control has been
[mono.git]
/
mcs
/
tests
/
gtest-236.cs
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
}