New tests.
authorMarek Safar <marek.safar@gmail.com>
Tue, 29 Jul 2008 11:33:35 +0000 (11:33 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 29 Jul 2008 11:33:35 +0000 (11:33 -0000)
svn path=/trunk/mcs/; revision=109144

mcs/errors/cs0037-7.cs [deleted file]
mcs/errors/cs0173-4.cs [new file with mode: 0644]
mcs/errors/cs0173.cs [new file with mode: 0644]
mcs/errors/gcs0173.cs [new file with mode: 0755]

diff --git a/mcs/errors/cs0037-7.cs b/mcs/errors/cs0037-7.cs
deleted file mode 100644 (file)
index 49a1f61..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0037: Cannot convert null to `bool' because it is a value type
-// Line: 8\r
-
-class X\r
-{\r
-       static void Main (string[] args)\r
-       {\r
-               bool b = args.Length > 0 ? null : null;\r
-       }\r
-}\r
diff --git a/mcs/errors/cs0173-4.cs b/mcs/errors/cs0173-4.cs
new file mode 100644 (file)
index 0000000..c0b7b58
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `null' and `null'
+// Line: 8\r
+
+class X\r
+{\r
+       static void Main (string[] args)\r
+       {\r
+               bool b = args.Length > 0 ? null : null;\r
+       }\r
+}\r
diff --git a/mcs/errors/cs0173.cs b/mcs/errors/cs0173.cs
new file mode 100644 (file)
index 0000000..cdadccd
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `null' and `null'
+// Line: 10
+
+using System;
+
+class X
+{
+       static int Main (string[] args)
+       {
+               int[] t = args.Length > 0 ? null : null;
+               return t == null ? 0 : 1;
+       }
+}
diff --git a/mcs/errors/gcs0173.cs b/mcs/errors/gcs0173.cs
new file mode 100755 (executable)
index 0000000..e3ed10e
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `lambda expression' and `lambda expression'
+// Line: 11
+
+using System;
+
+class Test
+{
+       public static void Main ()
+       {
+               bool descending = false;
+               Comparison<int> comp = descending ? ((e1, e2) => e2 < e1) : ((e1, e2) => e1 < e2);
+       }
+}