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
"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git]
/
mcs
/
tests
/
gtest-lambda-23.cs
blob
dded095b5d2a91b20d1dacbbfc995d5391376b4b
1
using
System
;
2
3
class
C
4
{
5
static
U Test
<
T
,
U
>(
T
[]
args
,
Func
<
T
,
U
>
f
)
6
{
7
return
f
(
args
[
1
]);
8
}
9
10
public static int
Main
()
11
{
12
var
s
=
new string
[]
{ "aaa", "bbb" }
;
13
var
foo
=
Test
(
s
,
i
=>
{ try { return i; }
catch
{ return null; }
});
14
if
(
foo
!=
s
[
1
])
15
return
1
;
16
17
return
0
;
18
}
19
}