Author: marek
Date: 2006-10-06 06:36:47 -0400 (Fri, 06 Oct 2006)
New Revision: 66342
Added:
trunk/mcs/errors/cs0019-18.cs
trunk/mcs/errors/cs0162-8.cs
Log:
New tests.
Added: trunk/mcs/errors/cs0019-18.cs
===================================================================
--- trunk/mcs/errors/cs0019-18.cs 2006-10-06 10:36:24 UTC (rev 66341)
+++ trunk/mcs/errors/cs0019-18.cs 2006-10-06 10:36:47 UTC (rev 66342)
@@ -0,0 +1,7 @@
+// CS0019: Operator `>' cannot be applied to operands of type `bool' and `bool'
+// Line: 6
+
+class S
+{
+ const bool res = true > false;
+}
Added: trunk/mcs/errors/cs0162-8.cs
===================================================================
--- trunk/mcs/errors/cs0162-8.cs 2006-10-06 10:36:24 UTC (rev 66341)
+++ trunk/mcs/errors/cs0162-8.cs 2006-10-06 10:36:47 UTC (rev 66342)
@@ -0,0 +1,14 @@
+// CS0162: Unreachable code detected
+// Line: 9
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+ public static int Main ()
+ {
+ if (true == false)
+ return 1;
+
+ return 2;
+ }
+}
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches