Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / test-856.cs
blob232a26a4bb537fdb7c2b97af11b807473fe5bc96
1 using System;
3 public abstract class A : IDisposable
5 public int i;
7 public virtual void Dispose ()
9 ++i;
13 public abstract class B : A
15 private new void Dispose ()
17 throw new ApplicationException ("B");
21 public class C : B
23 public static int Main ()
25 var c = new C ();
26 c.Dispose ();
27 if (c.i != 1)
28 return 1;
30 return 0;
33 public override void Dispose ()
35 base.Dispose ();