[Mono-bugs] [Bug 549948] New: TypeReference::Namespace is wrong for nested types
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Oct 25 20:10:51 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=549948
Summary: TypeReference::Namespace is wrong for nested types
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Cecil
AssignedTo: jbevain at novell.com
ReportedBy: frank.laub at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3
namespace CecilTest {
public class SomeType {
public class SomeNestedType { }
}
public class Program {
static int Main(string[] args) {
var asm = Mono.Cecil.AssemblyFactory.GetAssembly("CecilTest.exe");
foreach (Mono.Cecil.TypeDefinition type in asm.MainModule.Types) {
Console.WriteLine("Type found: {0}, Namespace: {1}",
type.ToString(), type.Namespace);
}
}
} // class Program
} // namespace CecilTest
Reproducible: Always
Actual Results:
Type found: <Module>, Namespace:
Type found: CecilTest.SomeType, Namespace: CecilTest
Type found: CecilTest.SomeType/SomeNestedType, Namespace:
Type found: CecilTest.Program, Namespace: CecilTest
Expected Results:
Type found: <Module>, Namespace:
Type found: CecilTest.SomeType, Namespace: CecilTest
Type found: CecilTest.SomeType/SomeNestedType, Namespace: CecilTest
Type found: CecilTest.Program, Namespace: CecilTest
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list