diff options
author | Marek Safar <marek.safar@gmail.com> | 2005-03-08 15:47:42 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2005-03-08 15:47:42 +0300 |
commit | 62fa0a39fb9c69fa0bcca42b1f8e99bd4fddde71 (patch) | |
tree | 2ea24d3c2b12db15b3682246041a1dc2d12d86e6 /mcs/errors/cs0724.cs | |
parent | 76584b8e4117858141aaad379071d33278ea3eb1 (diff) | |
parent | 439a11c23affba077cb480e497152f088ab32d1a (diff) |
fixed wrong errors
update
svn path=/trunk/mcs/; revision=41565
Diffstat (limited to 'mcs/errors/cs0724.cs')
-rw-r--r-- | mcs/errors/cs0724.cs | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/mcs/errors/cs0724.cs b/mcs/errors/cs0724.cs index ec9425ab46c..0b9de41ebf5 100644 --- a/mcs/errors/cs0724.cs +++ b/mcs/errors/cs0724.cs @@ -1,17 +1,23 @@ // CS0742: A throw statement with no argument is only allowed in a catch clause nested inside of the innermost catch clause // Line: 14 -using System; - -class Foo -{ - static void Main () - { - try { - Console.WriteLine ("TEST"); - } - finally { - throw; - } - } -} +class C
+{
+ static void Test()
+ {
+ try
+ {
+ throw new System.Exception();
+ }
+ catch
+ {
+ try
+ {
+ }
+ finally
+ {
+ throw;
+ }
+ }
+ }
+}
\ No newline at end of file |