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-09-15 19:07:35 +0400
committerMarek Safar <marek.safar@gmail.com>2009-09-15 19:07:35 +0400
commit95caa76c539ca6bcfd652568f3a3bed733498bac (patch)
treec99b8944f58383f0d65c44a66d8ef18a5c40e476 /mcs/errors
parent9facd7100d69e95a0df3eaa9b1fd7a4be3d25a41 (diff)
New tests.
svn path=/trunk/mcs/; revision=141970
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/gcs0458-5.cs17
-rw-r--r--mcs/errors/gcs0458-6.cs17
2 files changed, 34 insertions, 0 deletions
diff --git a/mcs/errors/gcs0458-5.cs b/mcs/errors/gcs0458-5.cs
new file mode 100644
index 00000000000..9f2251d35f0
--- /dev/null
+++ b/mcs/errors/gcs0458-5.cs
@@ -0,0 +1,17 @@
+// CS0458: The result of the expression is always `null' of type `E?'
+// Line: 15
+// Compiler options: -warnaserror -warn:2
+
+enum E
+{
+ V
+}
+
+public class C
+{
+ public static void Main ()
+ {
+ E e = E.V;
+ object o = e + null;
+ }
+}
diff --git a/mcs/errors/gcs0458-6.cs b/mcs/errors/gcs0458-6.cs
new file mode 100644
index 00000000000..34556b5b9f9
--- /dev/null
+++ b/mcs/errors/gcs0458-6.cs
@@ -0,0 +1,17 @@
+// CS0458: The result of the expression is always `null' of type `int?'
+// Line: 15
+// Compiler options: -warnaserror -warn:2
+
+enum E
+{
+ V
+}
+
+public class C
+{
+ public static void Main ()
+ {
+ E e = E.V;
+ object o = null - e;
+ }
+}