Remove code moved to shared partition
[mono-project.git] / mcs / errors / cs1686-6.cs
blob21ade60eb9a452335d2da363ba79f62586614e50
1 // CS1686: Local variable or parameter `str' 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 using System;
7 unsafe struct S
9 public fixed int i [10];
12 class C
14 static void Main ()
16 unsafe {
17 S str;
18 Func<int> e = () => str.i [3];