projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add CopyPath, CopyPathFlat, AppendPath
[mono.git]
/
mcs
/
tests
/
gtest-327.cs
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