[Mono-bugs] [Bug 29372][Nor] New - catch without exception not allowed by mcs
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
23 Aug 2002 15:13:25 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=29372
--- shadow/29372 Fri Aug 23 11:13:25 2002
+++ shadow/29372.tmp.6987 Fri Aug 23 11:13:25 2002
@@ -0,0 +1,37 @@
+Bug#: 29372
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lupus@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: catch without exception not allowed by mcs
+
+The following sample doesn't compile with mcs on either runtime
+(it compiles fine with csc).
+exception13.cs(8) error CS0155: The type caught or thrown must be derived
+from System.Exception
+
+using System;
+
+public class Ex {
+
+ public static int Main () {
+
+ try {
+ throw null;
+ } catch {
+ return 0;
+ }
+ return 1;
+ }
+}