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
[build] Fix warning (#4177)
[mono-project.git]
/
mcs
/
tests
/
test-897.cs
blob
e5b328255e6fee226962bbf0cb1d9b4ae0c1fe56
1
using
System
;
2
3
class
X
4
{
5
static int
Foo
()
6
{
7
throw new
ApplicationException
();
8
}
9
10
public static int
Main
()
11
{
12
try
{
13
var
b
=
Foo
()
is object
;
14
return
1
;
15
}
catch
(
ApplicationException
) {
16
}
17
18
try
{
19
var
b
=
Foo
()
as object
;
20
return
2
;
21
}
catch
(
ApplicationException
) {
22
}
23
24
return
0
;
25
}
26
}