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-anon-39.cs
blob
c027ff85298aec36b9364a1387d4794f131aa8be
1
using
System
;
2
3
public class
Test
4
{
5
delegate void
D
();
6
7
public static void
Main
()
8
{
9
Test t
=
new
Test
();
10
t
.
Test_1
(
t
);
11
t
.
Test_2
<
int
> (
1
);
12
}
13
14
public void
Test_1
<
T
> (
T t
)
where T
:
Test
15
{
16
D d
=
delegate
() {
17
Action
<
T
>
d2
=
new
Action
<
T
> (
t
.
Test_1
);
18
};
19
d
();
20
}
21
22
public void
Test_2
<
T
> (
T
?
t
)
where T
:
struct
23
{
24
bool
b
;
25
T t2
;
26
D d
=
delegate
() {
27
b
=
t
==
null
;
28
t2
= (
T
)
t
;
29
t2
=
t
??
default
(
T
);
30
};
31
32
d
();
33
}
34
}