a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
296 B
C#
24 lines
296 B
C#
class G<T>
|
|
{
|
|
public T def () { return default (T); }
|
|
}
|
|
|
|
class C
|
|
{
|
|
delegate void DF ();
|
|
static DF df;
|
|
static void foo (object o) { }
|
|
static void cf<T> ()
|
|
{
|
|
G<T> g = new G<T> ();
|
|
df = delegate { foo (g.def ()); };
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
cf<int> ();
|
|
df ();
|
|
return 0;
|
|
}
|
|
}
|