projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2003-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git]
/
mcs
/
tests
/
gen-24.cs
1
class Foo<T>
2
{
3
public Foo ()
4
{ }
5
6
public void Hello (T t)
7
{
8
Whatever (t);
9
}
10
11
public void Whatever (object o)
12
{
13
System.Console.WriteLine (o.GetType ());
14
}
15
}
16
17
class X
18
{
19
static void Test (Foo<int> foo)
20
{
21
foo.Hello (4);
22
}
23
24
static void Main ()
25
{
26
Foo<int> foo = new Foo<int> ();
27
Test (foo);
28
}
29
}