1 // Compiler options: -langversion:linq
2 // Tests variable type inference with the var keyword when using the "using" statement
5 public class MyClass : IDisposable
8 public MyClass (string s)
22 using (var v = new MyClass("foo"))
23 if (v.GetType() != typeof (MyClass))