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

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 2 May 2003 13:19:20 -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	Fri May  2 13:19:20 2003
+++ shadow/42264.tmp.7565	Fri May  2 13:19:20 2003
@@ -0,0 +1,28 @@
+Bug#: 42264
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: typeof(System.Void) is not allowed
+
+csc gives the following error message:
+typeof-void.cs(3,9): error CS0673: System.Void cannot be used from C# --
+use typeof(void) to get the void type object.
+while mcs compiles the test sample.
+class T {
+
+	static System.Void Main () {
+		System.Type t = typeof (System.Void);
+	}
+}