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
/
gtest-616.cs
blob
500e2542072c668e946a69f615ac451a4df797d7
1
using
System
;
2
3
struct
S
:
IDisposable
4
{
5
public void
Dispose
()
6
{
7
}
8
}
9
10
class
A
<
T
>
where T
:
IDisposable
11
{
12
public virtual bool
Test
<
U
> (
U u
)
where U
:
T
13
{
14
using
(
u
) {
15
return false
;
16
}
17
}
18
}
19
20
class
B
:
A
<
S
>
21
{
22
public override bool
Test
<
U
> (
U u
)
23
{
24
using
(
u
) {
25
return true
;
26
}
27
}
28
29
public static int
Main
()
30
{
31
var
b
=
new
B
();
32
if
(!
b
.
Test
(
new
S
()))
33
return
1
;
34
35
return
0
;
36
}
37
}