projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow passing null to JsonArray.Add()
[mono.git]
/
mcs
/
tests
/
test-async-73.cs
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
}