[runtime] Coverage profiler fixes (#5698)
[mono.git] / mcs / errors / cs4013.cs
1 // CS4013: Local variables of type `System.TypedReference' cannot be used inside anonymous methods, lambda expressions or query expressions
2 // Line: 9
3
4 using System;
5
6 class C
7 {
8         public static void Main ()
9         {
10                 int i = 1;
11                 TypedReference tr = __makeref (i);
12                 {
13                         Action a = () => {      TypedReference tr2 = tr; };
14                 }
15         }
16 }
17