Jo Shields fe777c5c82 Imported Upstream version 3.8.0
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
2014-09-04 09:07:35 +01:00

26 lines
314 B
C#

using System;
class X
{
static int Foo ()
{
throw new ApplicationException ();
}
public static int Main ()
{
try {
var b = Foo () is object;
return 1;
} catch (ApplicationException) {
}
try {
var b = Foo () as object;
return 2;
} catch (ApplicationException) {
}
return 0;
}
}