Update dependencies from https://github.com/dotnet/arcade build 20190729.1 (#15881)
[mono-project.git] / mcs / tests / gtest-025.cs
blob3ec8745220acd6ef3c83b39ad2434f0785efe0f9
1 class Foo
3 public Foo ()
4 { }
6 public void Hello<T> (T t)
8 // We're boxing the type parameter `T' to an object here.
9 Whatever (t);
12 public void Whatever (object o)
14 System.Console.WriteLine (o.GetType ());
18 class X
20 static void Test (Foo foo)
22 foo.Hello<int> (531);
25 public static void Main ()
27 Foo foo = new Foo ();
28 Test (foo);