[Mono-bugs] [Bug 391871] gmcs reports wrong error about try-catch block
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed May 21 07:51:57 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=391871
User aaragoneses at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=391871#c2
Andrés G. Aragoneses <aaragoneses at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
--- Comment #2 from Andrés G. Aragoneses <aaragoneses at novell.com> 2008-05-21 05:51:57 MST ---
I'm wondering, for this case you just committed:
+// CS1015: Only `object', `string', and types that derive from
`System.Exception' can be passed into a catch block
+// Line: 9
+
+class Test
+{
+ public static void Main ()
+ {
+ try {}
+ catch () {}
+ }
+}
+
Isn't it better an error like the one from CSC? The current message tends to
make the user think that he has put something, not an empty catch. Well, I'm
too perfectionist :)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list