update readme (#21797)
[mono-project.git] / mcs / errors / cs8175-2.cs
blob27c4babf8bfcfffb5c165d5ef7d014186b45717d
1 // CS8175: Cannot use by-reference variable `s' inside an anonymous method, lambda expression, or query expression
2 // Line: 17
3 // Compiler options: -langversion:latest
5 using System;
7 public ref struct S
11 class Test
13 public static void Main ()
15 var s = new S ();
17 Action a = () => Console.WriteLine (s);