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-327.cs
blob
af3b6b7837838b05e8358d01313a9428ea100e88
1
interface
ITest
2
{
3
void
Test
();
4
}
5
6
class
Tester
<
T
>
where T
:
ITest
,
new
()
7
{
8
public void
Do
()
9
{
10
new
T
().
Test
();
11
}
12
}
13
14
class
Reference
:
ITest
15
{
16
public void
Test
()
17
{
18
}
19
}
20
21
struct
Value
:
ITest
22
{
23
public void
Test
()
24
{
25
}
26
}
27
28
class
C
29
{
30
public static void
Main
()
31
{
32
new
Tester
<
Reference
> ().
Do
();
33
new
Tester
<
Value
> ().
Do
();
34
}
35
}
36
37