2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
[mono.git] / mcs / tests / gen-25.cs
1 class Foo
2 {
3         public Foo ()
4         { }
5
6         public void Hello<T> (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 foo)
20         {
21                 foo.Hello<int> (531);
22         }
23
24         static void Main ()
25         {
26                 Foo foo = new Foo ();
27                 Test (foo);
28         }
29 }