2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-037.cs
blob88eba8e1a1efa586d7428f8dc4728f3cd767a9a9
1 //
2 // Check whether we're correctly handling `this'.
3 //
4 //
6 public class Foo<T,U>
8 public void Hello (Foo<T,U> foo)
12 public virtual void Test ()
15 // Again, this must be encoded as a TypeSpec (Foo<!0,!1>)
16 // instead of a TypeDef.
17 Hello (this);
21 public class Bar<T> : Foo<T,long>
23 public void Test (Foo<T,long> foo)
25 Hello (foo);
29 public class Baz<T> : Foo<T,string>
31 public override void Test ()
33 Hello (this);
37 class X
39 static void Main ()
40 { }