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
2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git]
/
mcs
/
tests
/
gtest-327.cs
blob
e7c8196d049661059367ac775d769a8c10b3e628
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
static void
Main
()
31
{
32
new
Tester
<
Reference
> ().
Do
();
33
new
Tester
<
Value
> ().
Do
();
34
}
35
}
36
37