1 2 3 4 5 6 7 8 9 10 11 12 13 14
class Q { static void bar<T> (out T t) where T : struct { t = true ? new T () : new T (); } public static int Main () { int d = 0; bar (out d); return 0; } }