Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / gtest-416.cs
bloba61546ea6636ca159a96489227dbfe4b0f6ace06
1 public class Z { }
3 public class A<X, Y>
4 where Y : Z
5 where X : Y
7 public X Foo (Y y)
9 return y as X;
13 public class Foo
15 public static int Main ()
17 var a = new A<Z, Z> ();
18 if (a.Foo (new Z ()) == null)
19 return 1;
21 return 0;