Merged changes in master libmonoruntime into PR.
[mono.git] / mcs / errors / cs1674-2.cs
1 // CS1674: `object': type used in a using statement must be implicitly convertible to `System.IDisposable'
2 // Line: 10
3
4 using System;
5
6 class C
7 {
8         void Method (IDisposable i)
9         {
10                 using (object o = i)
11                 {
12                 }
13     }
14 }