15 lines
176 B
C#
Raw Permalink Normal View History

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;
}
}