Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
301 B
C#

using System;
// Tests private accessibility for dynamic binder
class Test
{
private delegate int D ();
private int field = 9;
public static int Main ()
{
D del = () => 5;
dynamic d = del;
if (d () != 5)
return 1;
d = new Test ();
if (d.field != 9)
return 2;
return 0;
}
}