[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / errors / cs0728.cs
blob1e4b848372a149d2b55ecf436d229710cdb2574c
1 // CS0728: Possibly incorrect assignment to `token' which is the argument to a using or lock statement
2 // Line: 11
3 // Compiler options: -warnaserror
5 public class Foo
7 public static void Main ()
9 object token = new object ();
10 lock (token)
12 Foo2 (ref token);
16 static void Foo2 (ref object o)