2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / errors / cs1673.cs
blobce18f9b403f6f70fa031fa28beebe2be782ca0b2
1 // cs1673.cs: Anonymous methods inside structs cannot access instance members of `this'. Consider copying `this' to a local variable outside the anonymous method and using the local instead
2 // Line:
3 using System;
5 struct S {
6 delegate void T ();
8 int f;
10 public int Test ()
12 T t = delegate {
13 f = 1;
15 return 0;
18 static void Main ()