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-316.cs
1
// Bug #79984
2
using System;
3
4
class X
5
{
6
static void Main ()
7
{ }
8
}
9
10
class Foo
11
{
12
public int X;
13
}
14
15
abstract class Base
16
{
17
public abstract void Method<R> ()
18
where R : Foo, new ();
19
}
20
21
class Derived : Base
22
{
23
public override void Method<S> ()
24
{
25
Method2<S> ();
26
// S s = new S ();
27
// Console.WriteLine (s.X);
28
}
29
30
public void Method2<T> ()
31
where T : Foo, new ()
32
{
33
T t = new T ();
34
Console.WriteLine (t.X);
35
}
36
}