2009-02-15 Jonathan Chambers <joncham@gmail.com>
[mcs.git] / errors / cs1686-2.cs
blob69699b6db2bbceb59bd10190d928f6ddacecf009
1 // CS1686: Local variable or parameter `a' cannot have their address taken and be used inside an anonymous method or lambda expression
2 // Line: 11
3 // Compiler options: -unsafe
5 delegate void D ();
7 unsafe class X {
8 public D T (int a)
10 return delegate {
11 int *x = &a;
15 static void Main ()
16 { }