Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / gtest-400.cs
blob90a82add53a3a2d513d274d1c70a8129f3af3739
1 using System;
3 class Gen<T> where T : class
5 public static bool Foo (T t)
7 return t is Program;
11 class Program
13 static bool Foo<T> ()
15 object o = 1;
16 return o is T;
19 public static int Main ()
21 if (Foo<bool> ())
22 return 1;
24 if (!Foo<int> ())
25 return 2;
27 if (Gen<object>.Foo (null))
28 return 3;
30 if (!Gen<Program>.Foo (new Program ()))
31 return 4;
33 Console.WriteLine ("ok");
34 return 0;