[sdks] Fix README.md
[mono-project.git] / mcs / tests / gtest-494.cs
blob4f8c4aea5c149e83b289f0f4eda8307f48176559
1 public class Grid<CT>
2 where CT : Grid<CT>.GPD.GC, new ()
4 public abstract class GPD
6 public GPD ()
8 ctInst = new CT ();
11 public readonly CT ctInst;
13 public abstract class GC
19 public class H : Grid<H.MyCT>.GPD
21 public class MyCT : GC
23 // When no explicit default constructor is present GMCS fails to compile the file.
24 // When it is present the execution crashes on mono.
25 // public MyCT () {}
29 public class TheTest
31 public static void Main (string[] args)
33 new H ();