No parser catch type check.
authorMarek Safar <marek.safar@gmail.com>
Wed, 21 May 2008 18:38:42 +0000 (18:38 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 21 May 2008 18:38:42 +0000 (18:38 -0000)
svn path=/trunk/mcs/; revision=103723

mcs/errors/cs0155-3.cs [new file with mode: 0755]
mcs/errors/cs0155-4.cs [new file with mode: 0644]
mcs/errors/cs1015-2.cs [deleted file]
mcs/errors/cs1015-3.cs [deleted file]

diff --git a/mcs/errors/cs0155-3.cs b/mcs/errors/cs0155-3.cs
new file mode 100755 (executable)
index 0000000..c10dce4
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0155: The type caught or thrown must be derived from System.Exception
+// Line: 9
+
+class Test
+{
+    public static void Main ()
+    {
+       try {}
+       catch (int[]) {}
+    }
+}
+
diff --git a/mcs/errors/cs0155-4.cs b/mcs/errors/cs0155-4.cs
new file mode 100644 (file)
index 0000000..6c1d105
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0155: The type caught or thrown must be derived from System.Exception
+// Line: 9
+
+class Test
+{
+    public static void Main ()
+    {
+       try {}
+       catch (bool b) {}
+    }
+}
+
diff --git a/mcs/errors/cs1015-2.cs b/mcs/errors/cs1015-2.cs
deleted file mode 100755 (executable)
index bd91c13..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1015: A type that derives from `System.Exception', `object', or `string' expected
-// Line: 9
-
-class Test
-{
-    public static void Main ()
-    {
-       try {}
-       catch (int[]) {}
-    }
-}
-
diff --git a/mcs/errors/cs1015-3.cs b/mcs/errors/cs1015-3.cs
deleted file mode 100644 (file)
index 57890b2..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1015: A type that derives from `System.Exception', `object', or `string' expected
-// Line: 9
-
-class Test
-{
-    public static void Main ()
-    {
-       try {}
-       catch (bool b) {}
-    }
-}
-