New test.
authorMarek Safar <marek.safar@gmail.com>
Thu, 3 Apr 2008 10:05:31 +0000 (10:05 -0000)
committerMarek Safar <marek.safar@gmail.com>
Thu, 3 Apr 2008 10:05:31 +0000 (10:05 -0000)
svn path=/trunk/mcs/; revision=99734

mcs/errors/gcs0458-4.cs [new file with mode: 0644]

diff --git a/mcs/errors/gcs0458-4.cs b/mcs/errors/gcs0458-4.cs
new file mode 100644 (file)
index 0000000..37be80a
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0458: The result of the expression is always `null' of type `int?' 
+// Line: 8
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+       static void Main ()
+       {
+               ushort us = 22;
+               int? r = us << null;
+       }
+}