// Compiler options: -t:library using System; public class A where T : new () { public T Value = new T (); public class N1 : A { } public class N2 { public int Foo () { return 0; } } }