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:
authorAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>2002-12-23 15:40:24 +0300
committerAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>2002-12-23 15:40:24 +0300
commit6aaf27ebc58d54ab29201155dfca0478089d0a79 (patch)
tree00476d4e833ce09ae5f4635a85ddc54e7399320a /mcs/errors/cs0156.cs
parenteb692e0edae660336cee6180919dd846852f387a (diff)
Added cs0156 test error.
svn path=/trunk/mcs/; revision=9840
Diffstat (limited to 'mcs/errors/cs0156.cs')
-rw-r--r--mcs/errors/cs0156.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/cs0156.cs b/mcs/errors/cs0156.cs
new file mode 100644
index 00000000000..18fc9e36fb4
--- /dev/null
+++ b/mcs/errors/cs0156.cs
@@ -0,0 +1,17 @@
+// CS0156: A throw statement with no argument is only allowed in a catch clause
+// Line: 12
+
+using System;
+
+class Foo
+{
+ static void Main ()
+ {
+ try {
+ Console.WriteLine ("Test cs0156");
+ throw;
+ }
+ catch {
+ }
+ }
+}