using System; using System.Collections.Generic; class A { void Test () where T : class, IList { Action a = () => { var d = default (T); Action a2 = () => { d = null; }; a2 (); }; a (); } public static int Main () { var a = new A (); a.Test (); return 0; } }