[Mono-bugs] [Bug 42264][Min] Changed - typeof(System.Void) is not allowed

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 5 May 2003 07:14:08 -0400 (EDT)


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 lupus@ximian.com.

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

--- shadow/42264	Sun May  4 21:08:29 2003
+++ shadow/42264.tmp.26839	Mon May  5 07:14:08 2003
@@ -34,6 +34,33 @@
 
 Even the documentation states that.
 
 Where is this problem showing up in our code?
 
 Miguel.
+
+------- Additional Comments From lupus@ximian.com  2003-05-05 07:14 -------
+You committed a typeof(System.Void) in the class libs and that broke
+the csc-based build. I Fixed that in cvs.
+typeof(void) compiles correctly (with csc from .net 1.0).
+It seems csc from .net 1.1 doesn't like the System.Void as a return
+type for the method, here is a bit of irc log (Dick has .net 1.1):
+[13:00] < lupus> Dick: do you mind compiling also the test at
+http://bugzilla.ximian.com/show_bug.cgi?id=42264 ?
+[13:01] < Dick> ok
+[13:01] < lupus> as it is and with typeof(void) instead of
+typeof(System.Void)
+[13:02] < Dick> void1.cs(4,9): error CS0673: System.Void cannot be
+used from C# -- use typeof(void) to get the void type object.
+[13:02] < Dick> thats as is
+[13:02] < Dick> void2.cs(4,9): error CS0673: System.Void cannot be
+used from C# -- use typeof(void) to get the void type object.
+[13:02] < Dick> thats with typeof(void)
+[13:03] < lupus> uhm
+[13:03] < lupus> and you compile the mono assemblies with that same csc?
+[13:03] < Dick> void2 compiles if i change the System.Void Main to
+void Main
+[13:04] < Dick> void1 still fails
+[13:04] < Dick> void1.cs(5,27): error CS0673: System.Void cannot be
+used from C# -- use typeof(void) to get the void type object.
+[13:04] < Dick> other line though
+