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:
authorMarek Safar <marek.safar@gmail.com>2009-07-16 19:24:22 +0400
committerMarek Safar <marek.safar@gmail.com>2009-07-16 19:24:22 +0400
commita95dd14068078f7bff7e6416327a788e34d74b49 (patch)
treef71e40029000bb785db330d86cd2036461a969ba /mcs/errors
parent09bb8bac272a460620d634268e3ce954acd590bc (diff)
New tests.
svn path=/trunk/mcs/; revision=138055
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/cs0079-5.cs16
-rw-r--r--mcs/errors/cs0165-15.cs12
2 files changed, 28 insertions, 0 deletions
diff --git a/mcs/errors/cs0079-5.cs b/mcs/errors/cs0079-5.cs
new file mode 100644
index 00000000000..97511f64a4d
--- /dev/null
+++ b/mcs/errors/cs0079-5.cs
@@ -0,0 +1,16 @@
+// CS0079: The event `C.ev' can only appear on the left hand side of `+=' or `-=' operator
+// Line: 14
+
+class C
+{
+ static event System.EventHandler ev
+ {
+ add { }
+ remove { }
+ }
+
+ static void Main ()
+ {
+ ev *= null;
+ }
+}
diff --git a/mcs/errors/cs0165-15.cs b/mcs/errors/cs0165-15.cs
new file mode 100644
index 00000000000..9b610e49e28
--- /dev/null
+++ b/mcs/errors/cs0165-15.cs
@@ -0,0 +1,12 @@
+// CS0165: Use of unassigned local variable `errors'
+// Line: 9
+// Compiler options: -langversion:future
+
+class T
+{
+ static void Main ()
+ {
+ dynamic errors;
+ errors.Call ();
+ }
+}