Merge pull request #3585 from lateralusX/jlorenss/win-counter-warning
[mono.git] / mcs / errors / cs0728.cs
1 // CS0728: Possibly incorrect assignment to `token' which is the argument to a using or lock statement
2 // Line: 11
3 // Compiler options: -warnaserror
4
5 public class Foo
6 {
7         public static void Main ()
8         {
9                 object token = new object ();
10                 lock (token)
11                 {
12                         Foo2 (ref token);
13                 }
14         }
15         
16         static void Foo2 (ref object o)
17         {
18         }
19 }