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 [EMAIL PROTECTED]

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

--- shadow/81044        2007-03-05 18:54:19.000000000 -0500
+++ shadow/81044.tmp.2603       2007-03-05 18:54:19.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 81044
+Product: Mono: Runtime
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: JIT
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Missing exception from invalid cast.
+
+The following code should thrown an InvalidCastException at runtime, but
+does not with Mono:
+
+using System.Collections.Generic;
+
+class CantCastGenericListToArray
+{
+       public static void Main(string[] args)
+       {
+               IList<object> list = new object[] { "foo", "bar" };
+               string[] array = (string[])list;
+               if (list.Count != array.Length)
+               {
+                       throw new System.ApplicationException();
+               }
+       }
+}
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to