2007-03-19 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / errors / cs1686.cs
blob9b884c599177b7f985c282283655443f412b0a82
1 // cs1686.cs: Local variable `i' or its members cannot have their address taken and be used inside an anonymous method block
2 // Line: 16
3 // Compiler options: -unsafe
5 class X {
6 delegate void S ();
8 unsafe void M ()
10 int i;
11 int * j ;
13 S s = delegate {
14 i = 1;
16 j = &i;
19 static void Main () {}