aboutsummaryrefslogtreecommitdiffstats
path: root/t/t4018/csharp-exclude-exceptions
diff options
context:
space:
mode:
Diffstat (limited to 't/t4018/csharp-exclude-exceptions')
-rw-r--r--t/t4018/csharp-exclude-exceptions29
1 files changed, 29 insertions, 0 deletions
diff --git a/t/t4018/csharp-exclude-exceptions b/t/t4018/csharp-exclude-exceptions
new file mode 100644
index 0000000000..b1e64256cf
--- /dev/null
+++ b/t/t4018/csharp-exclude-exceptions
@@ -0,0 +1,29 @@
+using System;
+
+class Example
+{
+ string Method(int RIGHT)
+ {
+ try
+ {
+ throw new Exception("fail");
+ }
+ catch (Exception)
+ {
+ }
+ finally
+ {
+ }
+ try { } catch (Exception) {}
+ try
+ {
+ throw GetException(
+ );
+ }
+ catch (Exception) { }
+
+ return "ChangeMe";
+ }
+
+ Exception GetException() => new Exception("fail");
+}