Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / bug-459285.2.cs
1 using System;
2
3 public class Foo<T>
4 {
5     public void DoSomething()
6     {
7         try
8         {
9             throw new Exception("Error");
10         }
11         catch
12         {
13             throw;
14         }
15     }
16 }
17
18 public class Bar: Foo<string>
19 {
20 }
21
22
23 public class MainClass
24 {
25     public static int Main()
26     {
27             try {
28                     new Bar().DoSomething();
29             } catch {
30                     return 0;
31             }
32             return 1;
33     }
34 }