summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1674-2.cs
blob: 5dc99682a8733ce72e8ebf5152ef80758acef77e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS1674: `object': type used in a using statement must be implicitly convertible to `System.IDisposable'
// Line: 10

using System;

class C
{
	void Method (IDisposable i)
	{
		using (object o = i)
		{
		}
    }
}