Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0728-3.cs
1 // CS0728: Possibly incorrect assignment to `s' which is the argument to a using or lock statement
2 // Line: 12
3 // Compiler options: -warnaserror
4
5 public class Foo
6 {
7         public static void Test (ref string s)
8         {
9                 lock (s) {
10                         lock (s) {}
11                         s = null;
12                 }
13         }
14 }