Merge pull request #3769 from evincarofautumn/fix-verify-before-allocs
[mono.git] / mcs / errors / cs1628.cs
1 // CS1628: Parameter `a' cannot be used inside `anonymous method' when using `ref' or `out' modifier
2 // Line: 15
3 using System;
4
5 delegate void D ();
6
7 class X {
8         static void Main ()
9         {
10         }
11
12         static void Host (ref int a)
13         {
14                 D b = delegate {
15                         a = 1;
16                 };
17         }
18 }