[Mono-bugs] [Bug 24095] New - monomcs compiler generates the IL for the delegate class outside of the namespace declaration
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
2 May 2002 01:51:05 -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 ripcurl187@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=24095
--- shadow/24095 Wed May 1 21:51:05 2002
+++ shadow/24095.tmp.5124 Wed May 1 21:51:05 2002
@@ -0,0 +1,84 @@
+Bug#: 24095
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details: XP Professional
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ripcurl187@yahoo.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: monomcs compiler generates the IL for the delegate class outside of the namespace declaration
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+monomcs compiler generates the IL for the delegate class outside of the
+namespace declaration
+
+
+Steps to reproduce the problem:
+1. Compile the following class using monomcs.exe and csc.exe as a library:
+using System;
+
+namespace DelegateTest
+{
+ public delegate void TestDelegate(object sender, EventArgs args);
+
+ public class TestClass
+ {
+ public TestClass() {}
+ }
+}
+
+2. View the IL (see below in "Actual Results:")
+
+Actual Results:
+microsoft compiler:
+// ============== CLASS STRUCTURE DECLARATION ==================
+//
+.namespace DelegateTest
+{
+ .class public auto ansi sealed TestDelegate
+ extends [mscorlib]System.MulticastDelegate
+ {
+ } // end of class TestDelegate
+
+ .class public auto ansi beforefieldinit TestClass
+ extends [mscorlib]System.Object
+ {
+ } // end of class TestClass
+
+} // end of namespace DelegateTest
+
+monomcs compiler:
+// ============== CLASS STRUCTURE DECLARATION ==================
+//
+.namespace DelegateTest
+{
+ .class public auto ansi beforefieldinit TestClass
+ extends [mscorlib]System.Object
+ {
+ } // end of class TestClass
+
+} // end of namespace DelegateTest
+
+.class public auto ansi sealed TestDelegate
+ extends [mscorlib]System.MulticastDelegate
+{
+} // end of class TestDelegate
+
+Expected Results:
+monomcs should have placed the delegate generated class inside the
+namespace declaration
+
+How often does this happen?
+Every time.
+
+Additional Information: