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:
authorMartin Baulig <martin@novell.com>2003-05-18 21:47:02 +0400
committerMartin Baulig <martin@novell.com>2003-05-18 21:47:02 +0400
commit6ea722d4d874e3b5c577337e330cabd65daee149 (patch)
tree13a8421225217a59382eb0ab822358589d099486 /mcs/errors/cs1502-2.cs
parent0e3afebbef92fd8a15f1d520bd29af9abbd8c753 (diff)
2003-05-18 Martin Baulig <martin@ximian.com>
* error-4.cs: Renamed to cs1502-2.cs. svn path=/trunk/mcs/; revision=14665
Diffstat (limited to 'mcs/errors/cs1502-2.cs')
-rw-r--r--mcs/errors/cs1502-2.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/errors/cs1502-2.cs b/mcs/errors/cs1502-2.cs
new file mode 100644
index 00000000000..67ecb15665c
--- /dev/null
+++ b/mcs/errors/cs1502-2.cs
@@ -0,0 +1,22 @@
+// CS1502: This should not compile as void can't be converted to bool
+// Line: 10
+using System;
+
+public class MainClass
+{
+ public static void Main()
+ {
+ test MyBug = new test();
+ Console.WriteLine (MyBug.mytest());
+ }
+}
+
+public class test
+{
+ public void mytest()
+ {
+ Console.WriteLine("test");
+ }
+}
+
+