blob: 640f8da4c364619ea675f0ce0f74df5b75b1151a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// CS0728: Possibly incorrect assignment to `s' which is the argument to a using or lock statement
// Line: 12
// Compiler options: -warnaserror
public class Foo
{
public static void Test (ref string s)
{
lock (s) {
lock (s) {}
s = null;
}
}
}
|