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
2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
gtest-anon-61.cs
blob
519397e4903321f3cf18ca5a99e9eeef90decd4f
1
using
System
;
2
using
System
.
Collections
.
Generic
;
3
4
public class
TestCase
5
{
6
static void
Main
()
7
{
8
Test
(
new
IList
<
int
> []
{ new int[] { 1, 2, 3 }
});
9
}
10
11
public static void
Test
<
T
> (
IList
<
IList
<
T
>>
l
)
12
{
13
Action action
=
delegate
{
14
var
temp
=
l
;
15
Func
<
IList
<
IList
<
T
>>,
int
>
f
=
a
=>
1
;
16
f
(
temp
);
17
};
18
19
action
();
20
}
21
}