From: Marek Safar Date: Wed, 21 May 2008 18:38:42 +0000 (-0000) Subject: No parser catch type check. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=50d999aa40dcbfb01b414219e50b5beadf32dba6;p=mono.git No parser catch type check. svn path=/trunk/mcs/; revision=103723 --- 50d999aa40dcbfb01b414219e50b5beadf32dba6 diff --cc mcs/errors/cs0155-3.cs index 00000000000,00000000000..c10dce4dc5b new file mode 100755 --- /dev/null +++ b/mcs/errors/cs0155-3.cs @@@ -1,0 -1,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 --cc mcs/errors/cs0155-4.cs index 00000000000,00000000000..6c1d105c7b8 new file mode 100644 --- /dev/null +++ b/mcs/errors/cs0155-4.cs @@@ -1,0 -1,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 --cc mcs/errors/cs1015-2.cs index bd91c13b91e,bd91c13b91e..00000000000 deleted file mode 100755,100755 --- a/mcs/errors/cs1015-2.cs +++ /dev/null @@@ -1,12 -1,12 +1,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 --cc mcs/errors/cs1015-3.cs index 57890b28019,57890b28019..00000000000 deleted file mode 100644,100644 --- a/mcs/errors/cs1015-3.cs +++ /dev/null @@@ -1,12 -1,12 +1,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) {} -- } --} --