repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Reenable AOT, it wasn't enabled on the x86 buildbot anyway.
[mcs.git]
/
tests
/
gtest-316.cs
blob
ca1f8faa1d35e207026fcc1f7c09c53049a869d5
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
}