New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 15 Dec 2009 09:39:25 +0000 (09:39 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 15 Dec 2009 09:39:25 +0000 (09:39 -0000)
svn path=/trunk/mcs/; revision=148449

mcs/errors/cs0172-2.cs [new file with mode: 0644]
mcs/errors/cs0172.cs

diff --git a/mcs/errors/cs0172-2.cs b/mcs/errors/cs0172-2.cs
new file mode 100644 (file)
index 0000000..71fbcb5
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0172: Type of conditional expression cannot be determined as `byte' and `int' convert implicitly to each other
+// Line: 9
+
+public class Tester
+{
+       public static void Main ()
+       {
+               byte x = 4;
+               var a = true ? x : 0;
+       }
+}
index fa6e77ae5783965417c6779655ed102aa995caac..5c8dc365fc7e68127053d3acf56c3aadc4a62d3d 100644 (file)
@@ -1,4 +1,4 @@
-// cs0172.cs: Can not compute type of conditional expression as `X' and `Y' convert implicitly to each other
+// CS0172: Type of conditional expression cannot be determined as `X' and `Y' convert implicitly to each other
 // Line: 25
 
 class X {