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
Fix DateTime.Now and CurrentTimeToUtc during DST transition time (#4172)
[mono-project.git]
/
mcs
/
tests
/
test-anon-108.cs
blob
1f531b1c8e07dffd7f51a8cbbe90cd79f16eb18a
1
using
System
;
2
using
System
.
Collections
.
Generic
;
3
4
delegate int
Foo
();
5
6
class
X
7
{
8
public static void
Main
()
9
{
10
Test
(
"Hello World"
,
8
);
11
}
12
13
public static void
Test
<
R
> (
R r
,
int
a
)
14
{
15
for
(
int
b
=
a
;
b
>
0
;
b
--) {
16
R s
=
r
;
17
Foo foo
=
delegate
{
18
Console
.
WriteLine
(
b
);
19
Console
.
WriteLine
(
s
);
20
return
3
;
21
};
22
a
-=
foo
();
23
}
24
}
25
}