linux-packaging-mono/mcs/tests/test-interpolation-07.cs
Xamarin Public Jenkins c042cd0c52 Imported Upstream version 4.2.0.179
Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
2015-11-10 15:03:43 +00:00

25 lines
275 B
C#

using System;
class CloningTests
{
static Action a;
static void Do (Action cb)
{
cb ();
}
static void SetupBAD ()
{
int number = 0;
Do(() => {
a = () => Console.WriteLine ($"Number: {++number}");
});
}
static void Main ()
{
SetupBAD ();
a ();
}
}