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

23 lines
292 B
C#

//
// Tests assignment of a captured variable to another
// Do not add anything else to this test.
//
delegate void S ();
class X {
//
// DO NOT ADD ANYTHING ELSE TO THIS TEST
//
public static int Main ()
{
int a = 2;
int b = 1;
S d = delegate {
a = b;
};
return 0;
}
}