http://bugzilla.novell.com/show_bug.cgi?id=536290
Summary: Reports IsPublic=false for public nested types
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Cecil
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: Development
public class SomeType {
public class SomeNestedType {
}
}
public class Program
{
static int Main (string [] args)
{
Mono.Cecil.AssemblyDefinition ass =
Mono.Cecil.AssemblyFactory.GetAssembly ("Test.exe");
foreach (Mono.Cecil.TypeDefinition type in ass.MainModule.Types){
Console.WriteLine ("Type found: ({0}){1}",
type.IsPublic, type.ToString ());
}
}
}
Current results:
Type found: (False)<Module>
Type found: (True)TestTest.SomeType
Type found: (False)TestTest.SomeType/SomeNestedType
Type found: (True)TestTest.Program
Expected results:
Type found: (False)<Module>
Type found: (True)TestTest.SomeType
Type found: (True)TestTest.SomeType/SomeNestedType
Type found: (True)TestTest.Program
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs