Browse Source

Improve ValueTypeCall.Using() test case

pull/877/head
Daniel Grunwald 8 years ago
parent
commit
fafc680458
  1. 4
      ICSharpCode.Decompiler.Tests/TestCases/Correctness/ValueTypeCall.cs

4
ICSharpCode.Decompiler.Tests/TestCases/Correctness/ValueTypeCall.cs

@ -124,9 +124,9 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
MutValueType x = y; MutValueType x = y;
x.Dispose(); x.Dispose();
} }
Console.WriteLine("Using with double var:"); Console.WriteLine("Using with variable declared outside:");
MutValueType z; MutValueType z;
using (var x = z = new MutValueType()) { using (z = new MutValueType()) {
z.Increment(); z.Increment();
} }
} }

Loading…
Cancel
Save