summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0728-2.cs
blob: 2f361a5f6f4d823dde286cd40453a7ec111d4f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0728: Possibly incorrect assignment to `d' which is the argument to a using or lock statement
// Line: 12
// Compiler options: -warnaserror

using System;

public class Foo
{
	public static void Test (IDisposable d)
	{
		using (d) {
			d = null;
		}
	}
}