Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git] / mcs / tests / gtest-037.cs
bloba722372709f3564e791d49b59ce2cd3af13614c0
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 public static void Main ()
40 { }