[Mono-bugs] [Bug 52146][Wis] New - MCS does not respect private ctors

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 13 Dec 2003 18:33:06 -0500 (EST)


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 bmaurer@users.sf.net.

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

--- shadow/52146	2003-12-13 18:33:06.000000000 -0500
+++ shadow/52146.tmp.9224	2003-12-13 18:33:06.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 52146
+Product: Mono/Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MCS does not respect private ctors
+
+Description of Problem:
+If a class has a private ctor, it cant be used.
+
+
+Steps to reproduce the problem:
+class A { A () {}}
+class T : A {
+	static void Main () { T t = new T (); }
+}
+
+Actual Results:
+Compile
+
+Expected Results:
+No compile.
+
+Additional Information:
+Is it also a runtime bug that this program runs?