Permalink
Please sign in to comment.
Browse files
2008-12-19 Mark Probst <mark.probst@gmail.com>
* mini-exceptions.c (get_exception_catch_class): Removed overly strict assertion. 2008-12-19 Mark Probst <mark.probst@gmail.com> * bug-459285.2.cs: New generic sharing test. * Makefile.am: Test added. svn path=/branches/mono-2-2/mono/; revision=121840
- Loading branch information...
Showing
with
47 additions
and 3 deletions.
- +5 −0 mono/mini/ChangeLog
- +0 −2 mono/mini/mini-exceptions.c
- +6 −0 mono/tests/ChangeLog
- +2 −1 mono/tests/Makefile.am
- +34 −0 mono/tests/bug-459285.2.cs
@@ -0,0 +1,34 @@ | ||
+using System; | ||
+ | ||
+public class Foo<T> | ||
+{ | ||
+ public void DoSomething() | ||
+ { | ||
+ try | ||
+ { | ||
+ throw new Exception("Error"); | ||
+ } | ||
+ catch | ||
+ { | ||
+ throw; | ||
+ } | ||
+ } | ||
+} | ||
+ | ||
+public class Bar: Foo<string> | ||
+{ | ||
+} | ||
+ | ||
+ | ||
+public class MainClass | ||
+{ | ||
+ public static int Main() | ||
+ { | ||
+ try { | ||
+ new Bar().DoSomething(); | ||
+ } catch { | ||
+ return 0; | ||
+ } | ||
+ return 1; | ||
+ } | ||
+} |
0 comments on commit
08038cb