[Mono-bugs] [Bug 23700] New - Constructor with parameter should disable the implicit 0 parameter constructor

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
20 Apr 2002 19:31:23 -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 pt99par@student.bth.se.

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

--- shadow/23700	Sat Apr 20 15:31:23 2002
+++ shadow/23700.tmp.14226	Sat Apr 20 15:31:23 2002
@@ -0,0 +1,34 @@
+Bug#: 23700
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: Mandrake 8.2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: pt99par@student.bth.se               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Constructor with parameter should disable the implicit 0 parameter constructor
+
+Please fill in this template when reporting a bug, unless you know what you are 
+doing. 
+Description of Problem: 
+The following code should not compile becouse the implicit empty constructor does 
+not exsist if anothe explicit constructor is created. see: csc.exe with the same 
+code.  The line that contains the error is :  new Test(); 
+ 
+public class Test { 
+     
+    public Test(int a) { } 
+     
+    public static void Main(string[] args) { 
+	new Test(); 
+    } 
+     
+}