blob: cd14ce2eecd966f3d4454affc0b2c40dd8c4730f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// CS0236: A field initializer cannot reference the nonstatic field, method, or property `Test.o1'
// Line: 8
delegate void Foo ();
class Test
{
object o1;
Foo h = delegate () {
o1 = null;
};
}
|