Merge pull request #2314 from lambdageek/dev/local-handles
[mono-project.git] / mcs / errors / cs0236-3.cs
blobcd14ce2eecd966f3d4454affc0b2c40dd8c4730f
1 // CS0236: A field initializer cannot reference the nonstatic field, method, or property `Test.o1'
2 // Line: 8
3 delegate void Foo ();
5 class Test
7 object o1;
9 Foo h = delegate () {
10 o1 = null;