Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
[mono-project.git] / mcs / errors / cs1686-4.cs
blob1cbfd8e06bfb6d57e0fbd9e29f99f674550b16d5
1 // CS1686: Local variable or parameter `a' cannot have their address taken and be used inside an anonymous method, lambda expression or query 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;
14 int *y = &a;