[Mono-bugs] [Bug 29023][Maj] New - void/bool problem

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
15 Aug 2002 18:53:36 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by groith@tcrz.net.

http://bugzilla.ximian.com/show_bug.cgi?id=29023

--- shadow/29023	Thu Aug 15 14:53:36 2002
+++ shadow/29023.tmp.5180	Thu Aug 15 14:53:36 2002
@@ -0,0 +1,41 @@
+Bug#: 29023
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: groith@tcrz.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: void/bool problem
+
+mcs doesn't recognize, that void cann't be converted to bool.
+Execution crashs mono and .NET.
+The following should not compile:
+
+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");
+       }
+}