[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0459-3.cs
1 // CS0459: Cannot take the address of using variable `m'
2 // Line: 19
3 // Compiler options: -unsafe
4
5 using System;
6
7 struct S : IDisposable
8 {
9         public void Dispose ()
10         {
11         }
12 }
13
14 class X {
15
16         unsafe static void Main ()
17         {
18                 using (S m = new S ()){
19                         S* mm = &m;
20                 }
21         }
22 }
23