Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-09-13 20:52:35 +0400
committerMarek Safar <marek.safar@gmail.com>2010-09-13 20:53:42 +0400
commit705cfc4639766b1a77496508812047fb20750747 (patch)
tree5c506b3b21aabc4e04c502fe461a0fa1cb3c721b /mcs/tests/dtest-008.cs
parent63af9c8471ed2b68d843d54aa5d6edbe882aea4c (diff)
Keep only 1 using implementation and handle all nullable and dynamic cases there.
Diffstat (limited to 'mcs/tests/dtest-008.cs')
-rw-r--r--mcs/tests/dtest-008.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/mcs/tests/dtest-008.cs b/mcs/tests/dtest-008.cs
index e234ac990ec..578f26b2b9c 100644
--- a/mcs/tests/dtest-008.cs
+++ b/mcs/tests/dtest-008.cs
@@ -5,7 +5,7 @@ using System.Collections.Generic;
class Disposable : IDisposable
{
- public int Counter;
+ public static int Counter;
public void Dispose ()
{
@@ -52,7 +52,8 @@ public class Test
}
} catch { }
- if (d.Counter != 1)
+ Console.WriteLine (Disposable.Counter);
+ if (Disposable.Counter != 1)
return false;
try {
@@ -61,7 +62,8 @@ public class Test
}
} catch { }
- if (d.Counter != 1)
+ Console.WriteLine (Disposable.Counter);
+ if (Disposable.Counter != 2)
return false;
return true;