projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #4433 from kumpera/android-fixes
[mono.git]
/
mcs
/
tests
/
test-ex-filter-06.cs
1
using System;
2
using System.IO;
3
using System.Collections.Generic;
4
5
class C
6
{
7
static int Test<T> () where T : Exception
8
{
9
try {
10
throw null;
11
} catch (T t) when (t.Message != null) {
12
return 0;
13
}
14
}
15
16
static int Main()
17
{
18
try {
19
Test<ApplicationException> ();
20
return 1;
21
} catch {
22
}
23
24
if (Test<NullReferenceException> () != 0)
25
return 2;
26
27
return 0;
28
}
29
}