Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2002-08-02 02:32:59 +0400
committerMartin Baulig <martin@novell.com>2002-08-02 02:32:59 +0400
commit6fffa82897bf452da00eeb8b5c25582f12a78246 (patch)
tree758aee8c5962074f5205ad882dc99259356e7247 /mcs/errors/cs0155-2.cs
parent11e86809aa6c811f5ceaec3efe5650373238b28c (diff)
2002-08-02 Martin Baulig <martin@gnome.org>
* cs0155.cs, cs0155-2.cs: New tests. svn path=/trunk/mcs/; revision=6339
Diffstat (limited to 'mcs/errors/cs0155-2.cs')
-rw-r--r--mcs/errors/cs0155-2.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs0155-2.cs b/mcs/errors/cs0155-2.cs
new file mode 100644
index 00000000000..c9cdad5d38d
--- /dev/null
+++ b/mcs/errors/cs0155-2.cs
@@ -0,0 +1,12 @@
+// cs0155-2.cs: The type caught or thrown must be derived from System.Exception
+// Line: 8
+class X {
+ static void Main ()
+ {
+ try {
+ ;
+ } catch (int e) {
+ throw;
+ }
+ }
+}