2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git] / tests / gtest-060.cs
blob446d87b3eb58fdaee066c82140dfd73a84e7cd88
1 using System;
3 interface IFoo
5 MyList<U> Map<U> ();
8 class MyList<T>
10 public void Hello (T t)
12 Console.WriteLine (t);
16 class Foo : IFoo
18 public MyList<T> Map<T> ()
20 return new MyList<T> ();
24 class X
26 static void Main ()
28 Foo foo = new Foo ();
29 MyList<int> list = foo.Map<int> ();
30 list.Hello (9);