[Mono-bugs] [Bug 25796] Changed - Another problem with typeref of nested types

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
7 Jun 2002 16:08:46 -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 lupus@ximian.com.


--- shadow/25796	Tue Jun  4 23:27:06 2002
+++ shadow/25796.tmp.19200	Fri Jun  7 12:08:46 2002
@@ -1,23 +1,23 @@
 Bug#: 25796
 Product: Mono/Runtime
 Version: unspecified
+OS: unknown
 OS Details: 
-Status: NEW   
+Status: ASSIGNED   
+Severity: Unknown
 Priority: Wishlist
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: manyoso@yahoo.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
-Summary: Another problem with nested enums
+Summary: Another problem with typeref of nested types
 Compile Pie.cs as a library: 
 > mcs --target library Pie.cs 
 And PieDemo.cs using the Pie.dll: 
@@ -60,6 +60,17 @@
 	static void Main() 
 		Pie myPie = new Pie(Pie.Fruit.Apple); 
+------- Additional Comments From lupus@ximian.com  2002-06-07 12:08 -------
+Note that PieDemo.cs won't compile, since using Pie is invalid
+(there is no namespace Pie). There was already a bug filed about this
+problem with mcs, but miguel closed it: you may want to resume the bug.
+As for the Typeref issue: nested types typerefs are handled in a
+special way in the typeref table. First you have a typeref to the
+'enclosing' type and then a special typeref to the nested one or
+something like that. I need to find some info on this, since it's not
+actually described in the spec.