[Mono-bugs] [Bug 71582][Maj] New - [PATCH] mcs/gmcs partial types with a destructor fail to compile

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 21 Jan 2005 13:56:56 -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 alp@atoker.com.

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

--- shadow/71582	2005-01-21 13:56:56.000000000 -0500
+++ shadow/71582.tmp.31936	2005-01-21 13:56:56.000000000 -0500
@@ -0,0 +1,31 @@
+Bug#: 71582
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: alp@atoker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCH] mcs/gmcs partial types with a destructor fail to compile
+
+mcs/gmcs fail to compile:
+
+  public partial class Window : Gtk.Bin {
+    ~Window()
+    {
+      Dispose();
+    }
+
+./src/gtk-src/Window.cs(16) error CS0575: Destructors are only allowed in
+class types
+
+The attached patches to the parser jay source fix the problem. Test case
+also provided.