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
Take stars out of types where they make more sense.
[mono-project.git]
/
mcs
/
tests
/
test-ex-filter-06.cs
blob
0b53cf387822e3acb5ed9d24d2d5cf5d6e745483
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
}