a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
366 B
C#
32 lines
366 B
C#
using System;
|
|
|
|
delegate void Simple ();
|
|
|
|
delegate Simple Foo ();
|
|
|
|
class X
|
|
{
|
|
public void Hello (long k)
|
|
{ }
|
|
|
|
public void Test (int i)
|
|
{
|
|
long j = 1 << i;
|
|
Hello (j);
|
|
Foo foo = delegate {
|
|
Hello (j);
|
|
return delegate {
|
|
Hello (j);
|
|
};
|
|
};
|
|
Simple simple = foo ();
|
|
simple ();
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
X x = new X ();
|
|
x.Test (3);
|
|
}
|
|
}
|