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
[System.Data] Try to fix random DataViewTest.DefaultColumnNameAddListChangedTest...
[mono-project.git]
/
mcs
/
tests
/
test-async-73.cs
blob
dc1935ff743c10d213edbb3a5d0d37fbe9fbd2e8
1
using
System
.
Threading
.
Tasks
;
2
using
System
;
3
4
class
X
5
{
6
static async
Task
<
int
>
Foo
()
7
{
8
var
v
=
Throws
();
9
10
try
{
11
await
v
;
12
}
catch
(
Exception e
) {
13
return
0
;
14
}
15
16
return
1
;
17
}
18
19
static async
Task
<
int
>
Throws
()
20
{
21
throw new
Exception
();
22
}
23
24
static int
Main
()
25
{
26
if
(
Foo
().
Result
!=
0
)
27
return
1
;
28
29
return
0
;
30
}
31
}