a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
23 lines
292 B
C#
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;
|
|
}
|
|
}
|