[Mono-bugs] [Bug 76535][Nor] New - System.CodeDom.CodeTypeReference.BaseType doesn't return correct value if ArrayElementType is set

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Oct 24 10:59:59 EDT 2005


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 sebastien at ximian.com.

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

--- shadow/76535	2005-10-24 10:59:59.000000000 -0400
+++ shadow/76535.tmp.24267	2005-10-24 10:59:59.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 76535
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: sebastien at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.CodeDom.CodeTypeReference.BaseType doesn't return correct value if ArrayElementType is set
+
+Description of Problem:
+System.CodeDom.CodeTypeReference.BaseType doesn't return correct value if
+ArrayElementType is set
+
+Steps to reproduce the problem:
+	[Test]
+	public void BaseType_ArrayElementType_Mixup ()
+	{
+		CodeTypeReference ctr = new CodeTypeReference ("System.Int32");
+
+		Assert.IsNull (ctr.ArrayElementType, "ArrayElementType");
+
+		ctr.ArrayElementType = new CodeTypeReference ("System.String");
+
+		Assert.AreEqual ("System.Int32", ctr.BaseType, "BaseType");
+
+	}
+
+
+Actual Results:
+        expected:<"System.Int32">
+         but was:<"System.String">
+
+
+Expected Results:
+no error
+
+How often does this happen? 
+Always when ArrayElementType is set.
+
+Additional Information:
+Unit test is added in System with "NotWorking" category.


More information about the mono-bugs mailing list