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
/
test-async-28.cs
blob
ef7ddeb6030c7ee997b6b8ef7fcfae373bd29eb5
1
using
System
.
Linq
;
2
using
System
.
Threading
.
Tasks
;
3
4
class
C
5
{
6
public static async
Task
Test
()
7
{
8
Task
<
int
[]>
d
=
Task
.
FromResult
(
new
[]
{ 1, 4, 5 }
);
9
var
r
=
from
x
in await
d
select
x
;
10
var
res
=
r
.
ToList
();
11
}
12
13
public static void
Main
()
14
{
15
Test
().
Wait
();
16
}
17
}