linux-packaging-mono/mcs/tests/test-anon-156.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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