repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #1861 from saper/home-override
[mono-project.git]
/
mcs
/
tests
/
test-856.cs
blob
232a26a4bb537fdb7c2b97af11b807473fe5bc96
1
using
System
;
2
3
public abstract class
A
:
IDisposable
4
{
5
public int
i
;
6
7
public virtual void
Dispose
()
8
{
9
++
i
;
10
}
11
}
12
13
public abstract class
B
:
A
14
{
15
private new void
Dispose
()
16
{
17
throw new
ApplicationException
(
"B"
);
18
}
19
}
20
21
public class
C
:
B
22
{
23
public static int
Main
()
24
{
25
var
c
=
new
C
();
26
c
.
Dispose
();
27
if
(
c
.
i
!=
1
)
28
return
1
;
29
30
return
0
;
31
}
32
33
public override void
Dispose
()
34
{
35
base
.
Dispose
();
36
}
37
}
38